Mysql开放远程访问

// root表示用户名,xxxxx表示密码
1、GRANT ALL PRIVILEGES ON *.* TO ‘root’@’%’ IDENTIFIED BY ‘xxxxxxx’ WITH GRANT OPTION;
// 立即生效
2、flush privileges;

Leave a Reply