Mysql 遠程鏈接

安裝好mysql5.7後,發現遠程鏈接不了,要以下設置 1. 註釋掉在 / etc/MySQL/mysql.conf.d/mysqld.cnf 裏面的 bind-address = 127.0.0.1mysql

# By default we only accept connections from localhost
#bind-address   = 127.0.0.1
use mysql;
Grant all on *.* to 'root'@'%' identified by 'root用戶的密碼' with grant option;
flush privileges;
相關文章
相關標籤/搜索