MySQL that's quite a popular relational database has one, with the future of MySQL after the acquisition of the open source of Oracle is uncertain, gooogle, not to die, and so on to the MySQL open source community to maintain another open source MySQL branch mariadb up, Maria is the name of the second daughter of the MySQL founder Michael Widenius, MARIADB fully compatible with MySQL, using Percona maintained XTRADB (codenamed Aria) instead of the InnoDB engine, a lot more optimized than InnoDB, In addition to parallel replication (Parallel Replication), Multi-source replication (Muti-source Replication) also have good support, details can be concerned about the official website https://mariadb.org
Binary installation MARIADB (5.5.32) Process: Environment CentOS 6.4
Download binary installation package https://downloads.mariadb.org/
Decompression TAR–XF mariadb-5.5.32-linux-x86_64.tar.gz–c/usr/local/
Create a soft link ln–sv/usr/local/mariadb-5.5.32-linux-x86_64//usr/local/mysql
CP SUPPORT-FILES/MY-LARGE.CNF/ETC/MY.CNF
Cd/usr/local/mysql
Copy the MySQL sample configuration file to/etc/for use, plus a few lines: Innodb_file_per_table = 1 provides a table space for each table
DataDir =/mydata/data Specify Database storage directory
user = MySQL specified to run the MySQL process users
CP Support-files/mysql.server/etc/rc.d/init.d/mysqld (System startup script, the official has to provide good, later can be directly service mysqld start, to achieve boot, need Chkconfig–add mysqld default 2,3,4,5 is on)
Echo ' Export path=/user/local/mysql/bin: $PATH ' >/etc/profile.d/mysql.sh (Add environment variable for MySQL)
echo '/usr/local/mysql/lib ' >/etc/ld.so.conf.d/mysql.conf; Ldconfig–v output MySQL library file
Ln–sv/usr/local/mysql/include/usr/include/mysql Output mysq header file
Groupadd–g 306 MySQL && useradd–g mysql–u 306 MySQL (provide MySQL-initiated users, do not change the UID or GID after user creation, or if the initialization of the database and then change the UID will cause Mys QL Service)
Chown–r Root.mysql/usr/local/mysql
Mkdir/mydata/data; Chown–r mysql.mysql/mydata/data Change Data directory owner, let MySQL user have read and write permission
SCRIPTS/MYSQL-INSTALL-DB--user=mysql--datadir=/mydata/data Initializing database
You are done, you can start the service mysqld start
MARIADB is fully compatible with MySQL and the installation process is exactly the same.
Technorati Label: MYSQL,MARIADB binary Package installation
This article from "Do not understand it Chinese medicine is not good it" blog, please be sure to keep this source http://zhishen.blog.51cto.com/1612050/1441385
MySQL Installation: MARIADB binary package mode installation