MySQL Installation: MARIADB binary package mode installation

Source: Internet
Author: User

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

  1. Download binary installation package https://downloads.mariadb.org/

  2. Decompression TAR–XF mariadb-5.5.32-linux-x86_64.tar.gz–c/usr/local/

  3. Create a soft link ln–sv/usr/local/mariadb-5.5.32-linux-x86_64//usr/local/mysql

  4. CP SUPPORT-FILES/MY-LARGE.CNF/ETC/MY.CNF

    1. Cd/usr/local/mysql

    2. 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

    3. DataDir =/mydata/data Specify Database storage directory

    4. user = MySQL specified to run the MySQL process users

  5. 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)

  6. Echo ' Export path=/user/local/mysql/bin: $PATH ' >/etc/profile.d/mysql.sh (Add environment variable for MySQL)

  7. echo '/usr/local/mysql/lib ' >/etc/ld.so.conf.d/mysql.conf; Ldconfig–v output MySQL library file

  8. Ln–sv/usr/local/mysql/include/usr/include/mysql Output mysq header file

  9. 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)

  10. Chown–r Root.mysql/usr/local/mysql

  11. Mkdir/mydata/data; Chown–r mysql.mysql/mydata/data Change Data directory owner, let MySQL user have read and write permission

  12. SCRIPTS/MYSQL-INSTALL-DB--user=mysql--datadir=/mydata/data Initializing database

  13. 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.