MySQL/Setting up MySQL: Difference between revisions
< MySQL
Jump to navigation
Jump to search
(→Arch Linux: thanks winestock) |
|||
Line 25: | Line 25: | ||
'''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. | *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> | #Install MariaDB: <code>$ sudo pacman -S mariadb</code> | ||
#Start the service: <code>$sudo systemctl start mysqld</code> | #Start the service: <code>$ sudo systemctl start mysqld</code> | ||
#To have it automatically launch at startup: <code>sudo systemctl enable mysqld</code> | #To have it automatically launch at startup: <code>$ sudo systemctl enable mysqld</code> | ||
#Create a password: <code>$/usr/bin/mysql_secure_installation</code> ''This will also clean up the demo database.'' | #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> | #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 18:30, 25 July 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 |