Linux uses binary to install mysql and binarymysql

Source: Internet
Author: User

Linux uses binary to install mysql and binarymysql

The following example shows how to install mysql using binary in linux.

1. download binary files

Download mysql-5.6.36-linux-glibc2.5-i686.tar.gz on official website.

2. decompress 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 and configure user groups and users

Groupadd mysqluseradd mysql-g mysqlchown-R mysql/usr/local/mysql/chgrp-R mysql/usr/local/mysql/

4. Installation and initialization

# Install mysql/usr/local/mysql/scripts/mysql_install_db -- user = root # configure mysql Startup File cp/usr/local/mysql/support-files/my-default.cnf/etc/my. cnf # Add the mysqld service to the system cp/usr/local/mysql/share/mysql. server/etc/init. d/mysqld # Soft link the mysql command to the system command ln-s/usr/local/mysql/bin/mysql/usr/bin/mysql

5. Start the service test

Service mysqld startmysql-u root

The above is all the content of this article. I hope it will be helpful for your learning and support for helping customers.

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.