配置数据用户远程访问
.....
GRANT ALL PRIVILEGES ON *.* TO 'pmservice'@'%'IDENTIFIED BY 'servicepm' WITH GRANT OPTION;
刷新系统权限 flush privileges;
下面来创建一个名为tester,密码为123,并且只能对peizhi库进行查询操作的账户:
mysql> grant select on peizhi.* to tester@localhost identified by "123" with grant option;
刷新系统权限 flush privileges;
下面来创建一个名为tester,密码为123,并且只能对peizhi库进行查询操作的账户:
mysql> grant select on peizhi.* to tester@localhost identified by "123" with grant option;
转载请注明:谷谷点程序 » mysql配置数据用户远程访问的命令方法