MySQL/Setting up MySQL: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
No edit summary
(labels for no-javascript-fallback)
Line 7: Line 7:
MySQL can be installed on just about every major OS:
MySQL can be installed on just about every major OS:
=Linux=
=Linux=
'''Linux:'''
#<code>$sudo apt-get install mysql-server</code> ''(see also: https://help.ubuntu.com/10.04/serverguide/C/mysql.html )''
#<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
Line 18: Line 19:
#Close out the command line tool
#Close out the command line tool
=Mac OS X=
=Mac OS X=
'''Mac OS X:'''
#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/
#Create a password when asked
#Create a password when asked
Line 27: Line 29:
#Close out the command line tool
#Close out the command line tool
=Windows=
=Windows=
'''Windows:'''
#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/
#Select ''Standard configuration''
#Select ''Standard configuration''

Revision as of 08:02, 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.png 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:

[edit]

Linux:

  1. $sudo apt-get install mysql-server (see also: https://help.ubuntu.com/10.04/serverguide/C/mysql.html )
  2. Create a password when asked
  3. Comment out the following line in the MySQL configuration file (/etc/mysql/my.cnf)
    1. from: bind-address = 127.0.0.1
    2. to  : #bind-address = 127.0.0.1
  4. Get into the MySQL command line utility: $mysql -u root -p
  5. Enter the following commands:
    1. Type in: CREATE USER 'xbmc' IDENTIFIED BY 'xbmc'; and press return
    2. Type in: GRANT ALL ON *.* TO 'xbmc'; and press return
  6. Close out the command line tool
[edit]

Mac OS X:

  1. Download a copy of MySQL server from http://dev.mysql.com/downloads/mysql/
  2. Create a password when asked
  3. Give the database access to your network: ?
  4. Get into the MySQL command line interface: ?
  5. Enter the following commands:
    1. Type in: CREATE USER 'xbmc' IDENTIFIED BY 'xbmc'; and press return
    2. Type in: GRANT ALL ON *.* TO 'xbmc'; and press return
  6. Close out the command line tool
[edit]

Windows:

  1. Download a copy of MySQL server from http://dev.mysql.com/downloads/mysql/
  2. Select Standard configuration
  3. Create a password when asked
  4. Select that you want the database to have network access when prompted during installation.
  5. Open the "MySQL Command Line Client" from the MySQL start menu
  6. Enter the following commands:
    1. Type in: CREATE USER 'xbmc' IDENTIFIED BY 'xbmc'; and press return
    2. Type in: GRANT ALL ON *.* TO 'xbmc'; and press return
  7. Close out the command line tool

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:

See also