How to perform binary installation on CentOS 6.9 mariadb 5.5.57

Source: Internet
Author: User

1. Check to see if MySQL is installed: Rpm-qa mysql*

650) this.width=650; "src=" Https:// "title=" Picture 1.png "alt=" Wkiom1ngps7ywaajaaaxxlquevs475.png "/>

(There is only one library file, stating that MySQL is not installed)

2. See if there is a MySQL user: getent passwd mysql

If not, create: useradd-d/app/mysqldb-r-m-s/sbin/nologin MySQL

650) this.width=650; "src=" Https:// "title=" Picture 2.png "alt=" Wkiom1ngpt6xvzfvaaaj394cjbu481.png "/>

3. Unzip the MARIADB package: Tar xvf mariadb-5-5-57 -linux-x86_64.tar.gz-c/usr/local

(Note: Because it is a binary installation, the description has been compiled, the installation directory must be placed under/usr/local/)

4. Create a soft link:


Ln-s Mariadb-5.5.57-linux-x86_64/mysql

650) this.width=650; "src=" Https:// "title=" Picture 3.png "alt=" Wkiol1ngqi6hfllyaabnarvivbo415.png "/>5. Into the/usr/local/mysql/directory:cd/usr/local/mysql/;

Create/etc/mysql/directory: mkdir/etc/mysql/;

Copying files support-files/my-huge.cnf to/etc/mysql: CP support-files/my-huge.cnf/etc/mysql/my.cnf

650) this.width=650; "src=" Https:// "title=" Picture 5.png "alt=" Wkiol1ngq5xxm37daab93mhk2ce768.png "/>

6. Edit the copied file: Vim/etc/mysql/my.cnf

650) this.width=650; "src=" Https:// "title=" Picture 6.png "alt=" Wkiol1ngq6wzfx56aabx0os8sjy781.png "/>

7.pwd; see if the working directory is under/usr/local/mysql

(If not this directory, execute Cd/usr/local/mysql)


650) this.width=650; "src=" Https:// "title=" Picture 7.png "alt=" Wkiom1ngrmfiqoqkaacjgzri7tm244.png "/>

8. Copy the mysql.server file and rename it to mysqld:

CP Support-files/mysql.server/etc/init.d/mysqld

See if there are any mysqld services: chkconfig--list mysqld

No add: Chkconfig--add mysqld

650) this.width=650; "src=" Https:// "title=" Picture 8.png "alt=" Wkiom1ngropbu_mxaac3e6_deju687.png "/>

9. Start mysqld Services: Service mysqld start

650) this.width=650; "src=" Https:// "title=" Picture 9.png "alt=" Wkiol1ngq9nstfqraabf62tzrl0328.png "/>

10. Create log directory: MKDIR/VAR/LOG/MARIADB;

Create log file: touch/var/log/mariadb/ Mysqld.log ;

Modify permissions: Chown Mysql/var/log/mariadb/mysqld.log;

Start Services: Service mysqld start;

650) this.width=650; "src=" Https:// "title=" Picture 10.png "alt=" Wkiom1ngrp7iyrpfaabkkxyyuye661.png "/>

650) this.width=650; "src=" Https:// "title=" 4.png "alt=" Wkiom1ngr73qixd6aaay0_bgpie187.png "/>

11. Edit the path file: vim/etc/profile.d/

650) this.width=650; "src=" Https:// "title=" Picture 11.png "alt=" Wkiol1ngq_byqxb6aaaevkedimm566.png "/>

12. Effective configuration file /etc/profile.d/

13. Initialize Mysql:mysql_secure_installation

The entire process is complete, the MARIADB package is installed, then you can log in for testing, the command is: mysql-uroot-p****** (****** refers to the password you set when initializing MySQL).

This article is from the "Mylog" blog, make sure to keep this source

How to perform binary installation on CentOS 6.9 mariadb 5.5.57

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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: and provide relevant evidence. A staff member will contact you within 5 working days.