Centos6.9安装Mysql5.7.18步骤记录
安装顺序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头文件和库文件) yuminstallgccgcc-c++ncurses-develperl yuminstallcmake-y groupaddmysql useradd-r-gmysqlmysql mkdir-p/usr/local/mysql mkdir-p/data/mysqldb tar-zxvfmysql-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/ chownmysql:mysql/var/lib/mysql-R chmod-R777/data/mysqldb servicemysqldstop mysqld_safe--skip-grant-tables& mysql-uroot-p >usemysql; >updateusersetauthentication_string=PASSWORD("password")whereuser="root"; updateusersethost='%'whereuser="root"; FLUSHPRIVILEGES; servicemysqldrestart mysql-uroot-ppassword SETPASSWORD=PASSWORD('password');
以上所述是小编给大家介绍的Centos6.9安装Mysql5.7.18步骤记录,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对毛票票网站的支持!