Installation system centos7 vps mysql5.6 local and remote connections provided notes

Xshell connected with vps

1, mysql download the repo source

wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm

 

sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm

  2, install mysql

sudo yum install mysql-server

  3, log mysql

mysql -u root

  Then enter the password, there may be an error: Access denied for user 'root' @ 'localhost' (using password: YES)

Workaround - refer to my other article https://www.cnblogs.com/lza945/p/10051841.html after, and the my.cnf mysqld plus skip_grant_tables, local root login solve this prohibition;

4, port development centos7 in 3306

firewall-cmd --get-active-zones
firewall-cmd --zone=public --add-port=3306/tcp --permanent
firewall-cmd --reload

  Then you can connect with navicat vps inside a mysql

 

Guess you like

Origin www.cnblogs.com/lza945/p/11444113.html