mysql鏈接遠程服務的一些問題

2003 can’t connect to mysql server on 10038

vim /etc/mysql/mysql.conf.d,修改mysqld.cnf中的 bind-address = 127.0.0.1 to bind-address = 0.0.0.0

1130: Host ‘xxx’ is not allowed to connect to thisMySQL server

  1. mysql -u root -p
  2. grant all privileges on . to root@’%’ identified by ‘123456’ with grant option;
  3. flush privileges;
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章