MySQL/Setting up MySQL: Difference between revisions
< MySQL
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 47: | Line 47: | ||
##<code>GRANT ALL ON *.* TO 'xbmc';</code> | ##<code>GRANT ALL ON *.* TO 'xbmc';</code> | ||
##<code>exit</code> | ##<code>exit</code> | ||
# | #Remain in Terminal.app. Now you'll be giving other computers on your network access to MySQL. Enter the next set of commands, one line at a time: | ||
##<code>cd /usr/local/mysql/support-files/</code> | ##<code>cd /usr/local/mysql/support-files/</code> | ||
##<code>sudo cp my-huge.cnf /etc/my.cnf</code> | ##<code>sudo cp my-huge.cnf /etc/my.cnf</code> | ||
Line 54: | Line 54: | ||
##<code>sudo nano my.cnf</code> | ##<code>sudo nano my.cnf</code> | ||
##:''This opens a file in a command line text editor'' | ##:''This opens a file in a command line text editor'' | ||
## | ##Scroll down to the [mysqld] section and add or edit the following line so that it appears as: | ||
##:<code>bind-address = ***.***.***.***</code> | ##:<code>bind-address = ***.***.***.***</code> | ||
##Save and exit, | ##Save and exit from the command line text editor | ||
#Reboot the Mac, or restart the MySQL service from the System Preferences pane you installed earlier | |||
*Alternative guide for Mac OS X: http://forum.xbmc.org/showthread.php?tid=151631 | *Alternative guide for Mac OS X: http://forum.xbmc.org/showthread.php?tid=151631 |
Revision as of 02:41, 12 January 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
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 |
On a NAS
MySQL can also be installed on some network-attached storage (NAS) device devices. See one of the following guides for more info:
- Devices running Arch Linux ARM (such as the PogoPlug, Dockstar, etc): HOW-TO:Sync multiple libraries/Setting up MySQL/ALARM
- Synology NAS as MySQL server for XBMC
- http://quixventure.com/2011/12/configure-a-synology-nas-as-mysql-server-for-xbmc/ New link for Synology NAS as MySQL server for XBMC
Next step: | Setting up XBMC |