MySQL/Setting up MySQL: Difference between revisions
< MySQL
Jump to navigation
Jump to search
No edit summary |
>UNiversal mNo edit summary |
||
Line 23: | Line 23: | ||
#Close out the command line tool with <code>\q</code> | #Close out the command line tool with <code>\q</code> | ||
=RedHat based | =RedHat based Linux= | ||
'''RedHat based Linux (RHEL, CentOS, Fedora):''' | '''RedHat based Linux (RHEL, CentOS, Fedora):''' | ||
#<code>$sudo yum install mysql-server</code> | #<code>$sudo yum install mysql-server</code> | ||
Line 90: | Line 90: | ||
##Name It MySQL XBMC or whatever you want | ##Name It MySQL XBMC or whatever you want | ||
##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 | #:{{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]:}}<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. | ||
Revision as of 23:10, 27 April 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 |