mysql中创建远程用户并授权,得以在本地代码中运行远程数据库
create user ruisheng identified by '123';
grant all privileges on *.* to 'ruisheng'@'%'identified by '123' with grant option;
flush privileges ;
create user ruisheng identified by '123';
grant all privileges on *.* to 'ruisheng'@'%'identified by '123' with grant option;
flush privileges ;