MySQL/Setting up MySQL: Difference between revisions
< MySQL
Jump to navigation
Jump to search
>UNiversal m (→On a computer) |
No edit summary |
||
Line 91: | Line 91: | ||
##Then type in the port number you set mysql to use(Default is 3306) | ##Then type in the port number you set mysql to use(Default is 3306) | ||
#:{{Note|You must do this twice:Once for UDP and once for TCP}} | #:{{Note|You must do this twice:Once for UDP and once for TCP}} | ||
{{Note|If XBMC is unable to connect to the MySQL server, returning an error code [1130]:}} | {{Note|If XBMC is unable to connect to the MySQL server, returning an error code [1130]:}}<br/> | ||
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. | 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. | ||
Line 109: | Line 109: | ||
#<code>GRANT ALL ON `MyMusic%`.* TO 'xbmc'@'%' IDENTIFIED BY 'xbmc';</code> | #<code>GRANT ALL ON `MyMusic%`.* TO 'xbmc'@'%' IDENTIFIED BY 'xbmc';</code> | ||
#<code>GRANT ALL ON `MyVideos%`.* TO 'xbmc'@'%' IDENTIFIED BY 'xbmc';</code> | #<code>GRANT ALL ON `MyVideos%`.* TO 'xbmc'@'%' IDENTIFIED BY 'xbmc';</code> | ||
Note: these grants do not appear to give the xbmc user permissions to create required TRIGGERs. So either figure out how to do an additional limited grant to create TRIGGERs or use the broader grant *.* statement above. }} | |||
Revision as of 11:54, 22 May 2013
HOW-TO:Sync multiple libraries/Contents
You'll need to choose which of your computers, XBMC devices, or NAS will be the MySQL server. The server needs to be on 24/7 or have wake-on-lan (preferably the former), and needs to have a local static IP. You will probably want the XBMC device that is hosting most or all of your videos and music to also be the MySQL server, but this is not required.
On a computer
NOTICE: Users are reporting issues with MySQL 5.6. Use MySQL 5.5 instead. |
MySQL can be installed on just about every major OS:
- If your library loads slowly with MySQL then you may wish to check out these MySQL speed-up tweaks.
Next step: | Setting up XBMC |