1. vi /etc/mysql/my.cnf
#bind-address = 127.0.0.1
2. GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘123456‘ WITH GRANT OPTION;
3. /etc/init.d/mysql restart
时间: 2024-11-05 15:15:20
1. vi /etc/mysql/my.cnf
#bind-address = 127.0.0.1
2. GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘123456‘ WITH GRANT OPTION;
3. /etc/init.d/mysql restart