Posts: 31,445
Joined: Jan 2011
XBMC will see a MySQL library the same way it sees the internal library, so it doesn't matter if you have media or not. Just remember to not use the lifehacker guide, as it is outdated. Use
MySQL (wiki) instead.
Posts: 113
Joined: Jun 2011
Reputation:
2
I was encountering issues with setting up MySQL where the various clients could not connect to the MySQL server, due to lovely Windows 7 permissions. I did, however, eventually get it working by slightly changing the GRANT ALL ON command from the original Wiki article. I created an account on the wiki, verified it via email and attempted to edit the page with the amended command. However, I was not able to edit the multiple "sections" for the various operating systems. It was only letting me make changes to the Mac OS/X "tab". I aborted the change, but the text I was going to add is:
###In some applications, your XBMC client may not be able to connect to your MySQL server, returning an error code [1130]
###If this occurs to you, try amending Step 2 above to read <code>GRANT ALL ON *.* TO 'xbmc'@'xxx.xxx.xxx.%';</code> where xxx.xxx.xxx is the first three quadrants of your home network's IP address (192.168.1 for example) and % as the last quadrant to allow addresses on the same subnet to connect
I don't know if some Wiki Ninja (Ned?) wants to update the article or not, but it might prove useful to others out there struggling with this.
Thanks.
~Brent
Posts: 31,445
Joined: Jan 2011
Yeah, the header tabs extension on the wiki has some bugs. The best way to get around it is to just click the over-all edit tab on the top of the page and scroll down to the section that needs editing. In any case, I've added your note. Thanks for the info!
Posts: 75
Joined: Sep 2011
Reputation:
3
2012-12-22, 00:28
(This post was last modified: 2012-12-22, 00:29 by bonelifer.)
See the "Note" on that page.
So:
GRANT ALL ON *.* TO 'xbmc';
would might need to be changed to:
GRANT ALL ON *.* TO 'xbmc'@'xxx.xxx.xxx.%';
Where you change the xxx's to the first 3 sets of numbers for the IP's in your network, for example:
GRANT ALL ON *.* TO 'xbmc'@'192.168.1.%';
Which assuming your network IP range matches the above would allow all IP's on your network to connect to the mysql daemon with the proper credentials.
Posts: 35
Joined: Aug 2011
Reputation:
0
2012-12-22, 00:37
(This post was last modified: 2012-12-22, 00:59 by Tritonal.)
after trying that I get can't find any matching row in the user table. Tried copy paste and typing it a couple of times now.
[edit] Out of curiousity in case I missed something. Are you supposed to export the library make the changes to it, remove all traces of the library from each xbmc install including the one you exported it from then reimport it to each xbmc install?
Posts: 35
Joined: Aug 2011
Reputation:
0
Ok update, I have gotten it now to where both libraries update when I add a new movie or show but they still don't update what has been watched or how far into a movie I am
Posts: 21
Joined: Dec 2012
Reputation:
0
I have this working on my home network but would like to know if it can work over the internet. I have a simple ftp server installed on my NAS which gives me access to all the media on my android phone. Can the database sharring work the same way? Anyone have something like that working. Also is FTP the best way to access the media outside you home network
Thanks
Posts: 31,445
Joined: Jan 2011
It won't work well over the internet. Accessing the library, even on a fast internet connection, will be really slow due to all the little requests and data that MySQL uses (if I understand the technical stuff correctly).
As far as just accessing media, I'm not sure what is the best way. FTP might be one of the easier methods of setup, and probably won't have any major issues, but I honestly don't know if it's the best way to go about it.