MySQL/Setting up MySQL: Difference between revisions
< MySQL
Jump to navigation
Jump to search
>Digialuk No edit summary |
(credit goes to Rumik http://forum.xbmc.org/showthread.php?tid=151631) |
||
Line 43: | Line 43: | ||
{{editor note|reference: http://iluvatv.wordpress.com/2010/10/23/setup-mysql-for-mac-os-x-xbmc/}} | {{editor note|reference: http://iluvatv.wordpress.com/2010/10/23/setup-mysql-for-mac-os-x-xbmc/}} | ||
#Download a copy of MySQL server from http://dev.mysql.com/downloads/mysql/ | #Download a copy of MySQL server from http://dev.mysql.com/downloads/mysql/ | ||
# | #In Mac OS X, go to System Preferences -> MySQL, and click on “Start MySQL Server”. You’ll also want to tick to enable the “Automatically … on Startup” option. | ||
# | #Now to set up the "xbmc" user in MySQL and give it access. Launch Terminal.app on your Mac and issue the following commands, one line at a time: | ||
##<code>sudo /usr/local/mysql/bin/mysql</code> | |||
# | ##<code>CREATE USER 'xbmc' IDENTIFIED BY 'xbmc';</code> | ||
## | ##<code>GRANT ALL ON *.* TO 'xbmc';</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>sudo cp my-huge.cnf /etc/my.cnf</code> | |||
##:''The command line will ask for your Mac OS X user password. Enter it and press return. No text will show when you type your password in, this is normal. | |||
##<code>cd /etc</code> | |||
##<code>sudo nano my.cnf</code> | |||
##:''This opens a file in a command line text editor'' | |||
##You'll want to scroll down to the [mysqld] section and add in or edit (if it exists) the following line so that it appears as: | |||
##:<code>bind-address = ***.***.***.***</code> | |||
##Save and exit, and reboot the machine (or just restart the MySQL service from the command line or from the System Pane you installed earlier). | |||
=Windows= | =Windows= |
Revision as of 02:36, 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 |