mysql 允许所有ip都可访问

mysql 允许所有ip都可访问

use mysql
update user set host='%' where user ='root';
FLUSH PRIVILEGES;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'WITH GRANT OPTION;

你可能感兴趣的:(mysql 允许所有ip都可访问)