MySQL/Setting up MySQL: Difference between revisions
< MySQL
Jump to navigation
Jump to search
>Ivanmmj No edit summary |
|||
Line 17: | Line 17: | ||
#Restart your MySQL server. <code>$sudo restart mysql</code> | #Restart your MySQL server. <code>$sudo restart mysql</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 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 with <code>\q</code> | |||
=Arch Linux= | |||
'''Arch Linux:''' | |||
*Please note: Arch, along with many other distributions, has migrated to the faster and more open MariaDB. It is a drop in replacement to MySQL and, thus, XBMC will require no modifications to work with it. | |||
#Install MariaDB: <code>$sudo pacman -S mariadb</code> | |||
#Start the service: <code>$sudo systemctl start mysqld</code> | |||
#Create a password: <code>$/usr/bin/mysql_secure_installation</code> ''This will also clean up the demo database.'' | |||
#Get into the MariaDB command line utility: <code>$mysql -u root -p</code> | |||
#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 |
Revision as of 04:49, 16 June 2013
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.
NOTICE: Users are reporting issues with MySQL 5.6. Use MySQL 5.5 instead. |
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.
Next step: | Setting up XBMC |