Centos6.9安装Mysql5.7.18步骤记录
程序员文章站
2022-09-07 22:02:51
安装顺序rpm -ivh
mysql-community-common-5.7.18-1.el7.x86_64.rpm
mysql-community-libs...
安装顺序rpm -ivh
mysql-community-common-5.7.18-1.el7.x86_64.rpm mysql-community-libs-5.7.18-1.el7.x86_64.rpm(依赖于common) mysql-community-client-5.7.18-1.el7.x86_64.rpm(依赖于libs) mysql-community-server-5.7.18-1.el7.x86_64.rpm(依赖于common,client) mysql-community-devel-5.7.18-1.el7.x86_64.rpm(mysql头文件和库文件) yum install gcc gcc-c++ ncurses-devel perl yum install cmake -y groupadd mysql useradd -r -g mysql mysql mkdir -p /usr/local/mysql mkdir -p /data/mysqldb tar -zxvf mysql-boost-5.7.18.tar.gz 后进行安装 vi /etc/my.cnf datadir=/data/mysqldb/ socket=/data/mysqldb/mysql.sock explicit_defaults_for_timestamp=true mysqld --initialize ln –s /data/mysql/mysql.sock /var/lib/mysql/ chown mysql:mysql /var/lib/mysql -r chmod -r 777 /data/mysqldb service mysqld stop mysqld_safe --skip-grant-tables & mysql -uroot -p >use mysql; > update user set authentication_string=password("password") where user="root"; update user set host='%' where user="root"; flush privileges; service mysqld restart mysql -uroot -ppassword set password = password('password');
以上所述是小编给大家介绍的centos6.9安装mysql5.7.18步骤记录,希望对大家有所帮助