mysql遠程訪問

1. vi /etc/mysql/my.cnfmysql

#bind-address = 127.0.0.1sql

2. GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION;rest

3. /etc/init.d/mysql restartit

相關文章
相關標籤/搜索