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