MySQL: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
Line 17: Line 17:
#Type in: <code>CREATE database xbmc_music;</code> and press return
#Type in: <code>CREATE database xbmc_music;</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




[[Category:How-to]]
[[Category:How-to]]

Revision as of 00:04, 14 November 2011

Notice: These instructions require the latest nightly build of XBMC (pre-Eden v11)

Into about what this is and how cool it is to sync XBMC libraries goes here

Selecting a server

Something about needing to choose which of your XBMC boxes (or NAS box) will be the MySQL server. Needs to be on 24/7 or have wake-on-lan (preferably the former), etc.

Setting up a MySQL server

  1. Download a copy of MySQL server for your OS: http://dev.mysql.com/downloads/mysql/
  2. Run the installer and select the Standard configuration
  3. Create a password when asked
  4. Select that you want the database to have network access
  5. Get into the MySQL command line interface.
    Windows: Open the "MySQL Command Line Client" from the MySQL start menu
  6. Type in: CREATE USER 'xbmc' IDENTIFIED BY 'xbmc'; and press return
  7. Type in: CREATE database xbmc_video; and press return
  8. Type in: CREATE database xbmc_music; and press return
  9. Type in: GRANT ALL ON *.* TO 'xbmc'; and press return
  10. Close out the command line tool