Mysql 添加远程访问账号
在命令窗口输入,mysql -u root -p 回车,并输入密码
执行 use mysql
设置test为账户,密码为:ceshipwd,权限为%,所有人
grant all on *.* to 'test'@'%' identified by 'ceshipwd';
如果权限不设置为所有人,可设定固定访问IP如下:
grant all on *.* to 'test'@'111.111.111.111' identified by 'ceshipwd';
最后,刷新
flush privileges;

