/usr/local/mysql/bin/mysql -u root -p (进入mysql)
use mysql;
SELECT `Host`,`User` FROM user;
UPDATE user SET `Host` = '%' WHERE `User` = 'root' LIMIT 1;
flush privileges;
注意在mysql 命令行形式下一定要输入";".
本栏目更多精彩内容:http://www.bianceng.cn/database/MySQL/
时间: 2024-12-15 15:17:32