MySQL/Setting up MySQL: Difference between revisions
< MySQL
Jump to navigation
Jump to search
No edit summary |
|||
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: | ||
=Linux= | |||
#<code>$sudo apt-get install mysql-server</code> ''(see also: https://help.ubuntu.com/10.04/serverguide/C/mysql.html )'' | |||
# | |||
#Create a password when asked | #Create a password when asked | ||
# | #Comment out the following line in the MySQL configuration file (/etc/mysql/my.cnf) | ||
##from: <code>bind-address = 127.0.0.1</code> | |||
# | ##to : <code>#bind-address = 127.0.0.1</code> | ||
# | #Get into the MySQL command line utility: <code>$mysql -u root -p</code> | ||
#Get into the MySQL command line | |||
#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 | ||
=Mac OS X= | |||
#Download a copy of MySQL server from http://dev.mysql.com/downloads/mysql/ | |||
#Create a password when asked | |||
#Give the database access to your network: '''?''' | |||
#Get into the MySQL command line interface: '''?''' | |||
#Enter the following commands: | |||
##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 | |||
#Close out the command line tool | |||
=Windows= | |||
#Download a copy of MySQL server from http://dev.mysql.com/downloads/mysql/ | |||
#Select ''Standard configuration'' | |||
#Create a password when asked | |||
#Select that you want the database to have network access when prompted during installation. | |||
#Open the "MySQL Command Line Client" from the MySQL start menu | |||
#Enter the following commands: | |||
##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 | |||
#Close out the command line tool | |||
<headertabs /> | |||
*{{editor note|1=Note these "speed up" commands here -> http://xbmcstuff.bossanova808.net/2011/03/summary-of-xbmc-mysql-database.html?m=1 }} | |||
== On a NAS == | == On a NAS == |
Revision as of 07:06, 5 February 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:
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: