赞
踩
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY 'your_password' WITH GRANT OPTION;
REVOKE ALL PRIVILEGES ON . FROM 'root'@'%';
DELETE FROM mysql.user WHERE user = 'root' AND host = '%';
GRANT ALL PRIVILEGES ON . TO 'root'@'IP' IDENTIFIED BY 'your_password' WITH GRANT OPTION;
FLUSH PRIVILEGES;
select user,host from mysql.user;
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。