mysql 啓用 遠程鏈接

1)可修改配置文件 / etc/mysql/mysql.conf.d/mydqld.cnf 裏面的參數!!
2)配置 MySQL 能夠遠程訪問:
mysql> grant all privileges  on *.* to root@'%' identified by "123456";
編輯 / etc/mysql/mysql.conf.d/mysqld.cnf, 註釋掉:bind-address=127.0.0.1 行
相關文章
相關標籤/搜索