Binary installation of MySQL steps under Linux

Source: Internet
Author: User

1. Download binary files

Download mysql-5.6.36-linux-glibc2.5-i686.tar.gz on the http://dev.mysql.com/downloads/mysql/official website.

2. Unzip the file and move it to the/usr/local/mysql directory

TAR-ZXVF mysql-5.6.36-linux-glibc2.5-i686.tar.gz

3. Create user groups and users and configure

MySQL-g MySQL

-/usr/local/mysql/
-R mysql/usr/local/mysql/

4. Installation and initialization

#安装mysql
/usr/local/mysql/scripts/mysql_install_db--user=root

#配置mysql启动文件
Cp/usr/local/mysql/support-files/my-default.cnf/etc/my.cnf

#将mysqld服务添加到系统中
Cp/usr/local/mysql/share/mysql/mysql.server/etc/init.d/mysqld

#将mysql命令软链接到系统命令中
Ln-s/usr/local/mysql/bin/mysql/usr/bin/mysql

5. Start the service test

Service mysqld Start

Mysql-u Root

Binary installation of MySQL steps under Linux

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.