centos 6.6 安装 mysql-5.7.18
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos 6.6 安装 mysql-5.7.18相关的知识,希望对你有一定的参考价值。
tar xvf mysql-5.7.18-linux-glibc2.5-x86_64.tar.gz -C /usr/local/ cd /usr/local/ mv mysql-5.7.18-linux-glibc2.5-x86_64/ mysql groupadd -u 800 mysql groupadd -g 800 mysql useradd -u 800 -g mysql mysql mkdir mysql/data chown -R mysql.mysql mysql cd mysql bin/mysqld --initialize --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data bin/mysql_ssl_rsa_setup --datadir=/usr/local/mysql/data cp mysql.server /etc/init.d/mysqld vim /etc/my.cnf [mysqld] user = mysql port = 3306 server_id = 1 socket=/tmp/mysql.sock basedir =/usr/local/mysql datadir =/usr/local/mysql/data # Disabling symbolic-links is recommended to prevent assorted security risks symbolic-links=0 [mysqld_safe] log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid vim /etc/profile.d/mysql.sh export PATH=$PATH:/usr/local/mysql/bin . /etc/profile.d/mysql.sh chkconfig mysqld on service mysqld start
以上是关于centos 6.6 安装 mysql-5.7.18的主要内容,如果未能解决你的问题,请参考以下文章
在Linux CentOS 6.6上安装Python 2.7.9