2 XBMC PCs and 1 Database on the shared NAS - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: XBMC General Help and Support (/forumdisplay.php?fid=111)
+---- Forum: Windows support (/forumdisplay.php?fid=59)
+---- Thread: 2 XBMC PCs and 1 Database on the shared NAS (/showthread.php?tid=70603)
- mwkurt - 2010-08-27 15:32
So the password that I need to put into mysql when setting it up is the same password that I use to log into my computer? Or am I wrong about that. When you say "Asministrator account" you mean Admin for MySQL and not my computer as a whole?
- charrua - 2010-08-27 16:32
mwkurt Wrote:So the password that I need to put into mysql when setting it up is the same password that I use to log into my computer? Or am I wrong about that. When you say "Asministrator account" you mean Admin for MySQL and not my computer as a whole?No, is not the administrator password of your PC, I meant that "root" is the administrator user of MySQL server.
- mwkurt - 2010-08-27 22:31
I tried resetting my root password according to the url that you posted. Here is what I did and what happened:
I installed mysql to the C: folder ---> C:\mysql
I created a text named mysql-init.txt with the following inside of it:
UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE User='root';
I was going to use PASSWORD as my new pasword.
Opened a command prompt and entered the following:
I got the following error message:
C:\mysql\bin\mysql-nt' is not recognized as an internal or external command, operable program or batch file
Looks like I am F-cked!
I am at a loss now.
I also tried HeidiSQL and got the following error:
SQL error (1045): Access denied for user 'root@localhost (using password: YES)
Any other suggestions?
- charrua - 2010-08-27 23:05
Try C:\mysql\bin\mysqld.exe --init-file=C:\\mysql-init.txt
- mwkurt - 2010-08-27 23:08
Here is an update to my problem.
I went through my computer and found all instances of mysql, and deleted them. This allowed me to go back and reinstall mysql and enter new passwords. In my case I made the passwrord "xbmc", without the quotes.
I started XBMC and expected something to happen in the way of making a datbase and nothing happened. Here is my log file:
XBMC still can't open the database and it says (1045) but HeidlSQL works now and I can open my db structure when I enter the password "xbmc".
How do I get XBMC to integrate with mysql now?
- charrua - 2010-08-27 23:17
Did you create the user 'xbmc' ?
If not you need to do it and give that user all permissions.
You can do that with HeidiSQL, from the menu choose tools>user manager and from there you can create the new user and assign all the permissions.
- mwkurt - 2010-08-28 02:46
I wanted to thank you for all of your help so far...so thanks!
Anyway, I finally figured what I was doing, sort of.
I created the db using HeidiSQL and the user "xbmc" with password "xbmc"
I closed HeidiSQL, opened XBMC, waited a minute then closed XBMC.
Reopened HeidiSQL and this is the result:
There are two items under xbmc_video > bookmark & version.
I don't really know what to look for to see if it is working as it should nor do I know how to test XBMC to see if it is working.
I highly doubt that it is set up correctly as my latest XBMC log is filled with errors:
I did not import my video db into XBMC the first time I reopened after I created the DB. I did however reopen after looking at HeidiSQl and imported at that time.
Do you have any more advice for me, please?
Also...I mentioned this before but never received an answer. When I added the mysqldb information to my advancedsettings.xml, the MOVIE and TVSHOWS entries on the HOME SCREEN are no longer there and I can no longer get into LIBRARY mode. Is this normal behaviour under these circumstances? If it is, All of this may be moot because I don't want to be without those entries and library mode.
- charrua - 2010-08-28 04:43
Open HeidiSQL again and revert the From Host to % as it was (that tells MySQL to allow user xbmc to log from every host).
mwkurt Wrote:Underneath that is a box that says "add privileges". There are two check boxes underneath....Sever Privileges & All Databases. They both have all items inside checked.
Yes, that's ok.
mwkurt Wrote:Looking back through this thread, I saw where someone else had a similar problem and I think it was the character set. I chose Latin when I installed mysql:Great. Cause if the collation is set to utf8 some indexes and tables won't be created.
mwkurt Wrote:Also I noticed an entry about a bug in mysql:
Also true, if you define the media sources as local paths you will have a problem, cause they won't be scanned. To avoid this you can share the folders where the media is and then define the media sources over the shared paths.
mwkurt Wrote:I am still getting the following error when opening XBMC:Try connecting to the db with HeidiSQL using user: xbmc and the password you've defined for it (it should be the same that the one you have in the <password> tag inside advancedsettings.xml) if you can connect to the dbs from HeidiSQL you should be able to connect from XBMC.
- charrua - 2010-08-28 04:57
You're welcome. It's a good thing that you've started to read the whole thread, there's a lot of info already here.
mwkurt Wrote:I created the db using HeidiSQL and the user "xbmc" with password "xbmc"
Yes, make shure the dbs collation is really defined as latin1. In HeidiSQL right click the db and select Edit, the character set should be latin1, and collation could be latin1_general_ci, if not select them and click OK. After that delete all tables and views already created and start XBMC again, this time it should create all tables and views. As you did before, you can check that with HeidiSQL, there is no need to close XBMC while you connect to MySQL from HeidiSQL.
mwkurt Wrote:Also...I mentioned this before but never received an answer. When I added the mysqldb information to my advancedsettings.xml, the MOVIE and TVSHOWS entries on the HOME SCREEN are no longer there and I can no longer get into LIBRARY mode. Is this normal behaviour under these circumstances? If it is, All of this may be moot because I don't want to be without those entries and library mode.
As I wrote in my previous post, remember to share the paths where the media is and then define the media sources within XBMC using the networked paths instead of the local paths.
- mwkurt - 2010-08-29 16:08
Well.....I think it is working as it should!!!!
I unistalled XBMC and put the latest nightlie in. I let it import everything overnight and low and behold, I still have my MOVIES and TVSHOWS entries on the home screen. I looked through my XBMC log and did not see any errors. So it looks good. Is there a way I can check to see if it is indeed working as it should.
I think I had to change two things in my mysql DB. First, the language was set latin1_swedish_ci, I changed it as you said to latin1_general_ci. And I changed all of my video libraries to Windows smb shares.
So everything looks good. Thanks so much for all of your help!