MySQL/Setting up MySQL: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
>Cwatson05
No edit summary
>Surej96
No edit summary
Line 52: Line 52:
##Use these same steps to set up the Outbound exception then name it MYSQL Outbound(or whatever you want) then you're finished.
##Use these same steps to set up the Outbound exception then name it MYSQL Outbound(or whatever you want) then you're finished.
#:You may or may not have to set up both in and outbound, someone with more knowledge please edit this if you know.
#:You may or may not have to set up both in and outbound, someone with more knowledge please edit this if you know.
#In '''Windows XP''', you may need to make an exception in the "Windows Firewall"
##Open Control Panel and Set to 'Classic View'
##Double Click on Windows Firewall
##Click on Exception-->Add Port
##Name It MySQL XBMC or whatever you want
##Then type in the port number you set mysql to use(Default is 3306)
#:Note:You must do this twice:Once for UDP and once for TCP


<headertabs />
<headertabs />

Revision as of 15:30, 21 April 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. To configure MySQL to listen for connections from network hosts, edit /etc/mysql/my.cnf and change the bind-address directive to the server's IP address:
    1. from: bind-address = 127.0.0.1
    2. to: bind-address = 192.168.0.5
    • Note: Replace 192.168.0.5 with the appropriate address.
  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:

Editor note: reference: http://iluvatv.wordpress.com/2010/10/23/setup-mysql-for-mac-os-x-xbmc/

  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
  8. In Windows 7, you may need to make an exception in the "Windows Firewall"
    1. Go to control panel and open windows firewall
    2. Click on advanced settings
    3. Click on Inbound Rules, then new rule
    4. Chose the port option, click next
    5. Then type in the port number you set mysql to use(Default is 3306)
    6. Make sure Allow the connection is checked then click next
    7. Name it MYSQL Inbound(or whatever you want) then click finish
    8. Use these same steps to set up the Outbound exception then name it MYSQL Outbound(or whatever you want) then you're finished.
    You may or may not have to set up both in and outbound, someone with more knowledge please edit this if you know.
  9. In Windows XP, you may need to make an exception in the "Windows Firewall"
    1. Open Control Panel and Set to 'Classic View'
    2. Double Click on Windows Firewall
    3. Click on Exception-->Add Port
    4. Name It MySQL XBMC or whatever you want
    5. Then type in the port number you set mysql to use(Default is 3306)
    Note:You must do this twice:Once for UDP and once for TCP


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:

Editor note: If we could wikify these so we have our own copy, that would be most excellent. Hint hint, anyone.

See also