Mysql-linux under Installation

Source: Internet
Author: User

This installation is only responsible for version 5.7.21.

: wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.21-linux-glibc2.12-x86_64.tar.gz

shell> groupadd MySQL

Shell> Useradd- R- g MySQL -s/bin/false mysql

shell> cd/usr/local

Shell> tar zxvf /path/to/mysql-version-os. Tar. GZ

shell> LN- s full-path-to-mysql-version-os mysql

shell> CD MySQL

shell> mkdir mysql-files

< Span class= "token punctuation" > < Span class= "token command" > Shell> Chown mysql:mysql mysql-files

< Span class= "token punctuation" > < Span class= "token command" >< Span class= "token command" >shell> chmod mysql-files

< Span class= "token punctuation" > < Span class= "token command" >< Span class= "token command" > shell> Bin/mysqld --initialize --user=mysql

< Span class= "token punctuation" > < Span class= "token command" >< Span class= "token command" > < span class= "token constant" > shell> Bin/mysql_ssl_rsa_setup

< Span class= "token prompt" >< Span class= "token prompt" > < Span class= "Token property" > shell > Bin/mysqld_safe --user =mysql &

< Span class= "token prompt" >< Span class= "token prompt" > < Span class= "Token property" > < Span class= "token command" > # Next command is optional enter.

< Span class= "token punctuation" > < Span class= "token attr-value" > < Span class= "token attr-value" > shell> CP Support-files/mysql .server/etc/init.d/mysql .server

< Span class= "token command" > < span class= "token constant" > < span class= "token constant" > < Span class= "token punctuation" >shell> vim ~/.bash_profile

# MySQL [

Export Mysql_home=/usr/local/mysql

# MySQL]

Path= $PATH: $HOME/bin: $MYSQL _home/bin

Shell> Source ~/.bash_profile

< Span class= "token command" > < span class= "token constant" > < span class= "token constant" > < Span class= "token punctuation" > 

Mysql-linux under Installation

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.