MySQL/Setting up MySQL: Difference between revisions
< MySQL
Jump to navigation
Jump to search
>Abeeson (Added RH derived OS mysql install options) |
>Abeeson m (Added RH entry for setting root password) |
||
Line 6: | Line 6: | ||
{{incomplete}} | {{incomplete}} | ||
MySQL can be installed on just about every major OS: | MySQL can be installed on just about every major OS: | ||
=Ubuntu Linux= | =Ubuntu Linux= | ||
'''Ubuntu Linux:''' | '''Ubuntu Linux:''' | ||
Line 20: | Line 21: | ||
##Type in: <code>CREATE USER 'xbmc' IDENTIFIED BY 'xbmc';</code> and press return | ##Type in: <code>CREATE USER 'xbmc' IDENTIFIED BY 'xbmc';</code> and press return | ||
##Type in: <code>GRANT ALL ON *.* TO 'xbmc';</code> and press return | ##Type in: <code>GRANT ALL ON *.* TO 'xbmc';</code> and press return | ||
#Close out the command line tool | #Close out the command line tool with <code>\q</code> | ||
=RedHat based linux= | =RedHat based linux= | ||
'''RedHat based Linux (RHEL, CentOS, Fedora):''' | '''RedHat based Linux (RHEL, CentOS, Fedora):''' | ||
Line 29: | Line 31: | ||
#*Note: Alternatively you can leave this file as is to allow local and remote access. | #*Note: Alternatively you can leave this file as is to allow local and remote access. | ||
#Restart your MySQL server. <code>$sudo /sbin/service mysqld restart</code> | #Restart your MySQL server. <code>$sudo /sbin/service mysqld restart</code> | ||
#*Recommended - Set your MySQL root password with <code>/usr/bin/mysqladmin -u root password 'new-password'</code> | |||
#Get into the MySQL command line utility: <code>$mysql -u root -p</code> | #Get into the MySQL command line utility: <code>$mysql -u root -p</code> | ||
#*Enter your MySQL root password as set above, or just press enter if you didn't set one to log in with a blank password | |||
#Enter the following commands: | #Enter the following commands: | ||
##Type in: <code>CREATE USER 'xbmc' IDENTIFIED BY 'xbmc';</code> and press return | ##Type in: <code>CREATE USER 'xbmc' IDENTIFIED BY 'xbmc';</code> and press return | ||
##Type in: <code>GRANT ALL ON *.* TO 'xbmc';</code> and press return | ##Type in: <code>GRANT ALL ON *.* TO 'xbmc';</code> and press return | ||
#Close out the command line tool | #Close out the command line tool with <code>\q</code> | ||
=Mac OS X= | =Mac OS X= | ||
'''Mac OS X:''' | '''Mac OS X:''' | ||
Line 46: | Line 51: | ||
##Type in: <code>GRANT ALL ON *.* TO 'xbmc';</code> and press return | ##Type in: <code>GRANT ALL ON *.* TO 'xbmc';</code> and press return | ||
#Close out the command line tool | #Close out the command line tool | ||
=Windows= | =Windows= | ||
'''Windows:''' | '''Windows:''' |
Revision as of 04:05, 12 June 2012
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
INCOMPLETE: This page or section is incomplete. Please add information or correct uncertain data which is marked with a ? |
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.
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:
- Pogoplug for a MySQL db in XBMC
- 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