mysql中创建远程用户并授权,得以在本地代码中运行远程数据库

create user ruisheng identified by '123';
grant all privileges on *.* to 'ruisheng'@'%'identified by '123' with grant option;
flush privileges ;

posted @ 2018-04-04 10:20  Roger胜  阅读(137)  评论(0编辑  收藏  举报