Centos6.9安裝Mysql5.7.18步驟記錄。本站提示廣大學習愛好者:(Centos6.9安裝Mysql5.7.18步驟記錄)文章只能為提供參考,不一定能成為您想要的結果。以下是Centos6.9安裝Mysql5.7.18步驟記錄正文
作者:木易_楊
本文給大家詳細介紹了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頭文件和庫文件) 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步驟記錄,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復大家的。在此也非常感謝大家對網站的支持!