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