1:遠程連接問題
打開 /etc/mysql/mysql.conf.d/mysqld.cnf 註釋掉 bind-address 127.0.0.1
2:給root用戶相應權限
將root用戶授權給所以連接:grant all privileges on *.* to 'root'@'%' identified by 'xxxxxx';
最後一個爲mysql密碼
讓權限立即生效:flush privileges;
打開 /etc/mysql/mysql.conf.d/mysqld.cnf 註釋掉 bind-address 127.0.0.1
將root用戶授權給所以連接:grant all privileges on *.* to 'root'@'%' identified by 'xxxxxx';
最後一個爲mysql密碼
讓權限立即生效:flush privileges;