语法如下:
grant [权限] on [数据库名].[表命] to ['用户命']@['web服务器的ip地址'] identified by ['密码'];
例如:
grant all privileges on *.* to 'myuser'@'%' identified by 'password' with grant option;
flush privileges;
grant [权限] on [数据库名].[表命] to ['用户命']@[服务器的ip地址] identified by ['密码'];
举例说明:丙只能读数据库3
GRANT SELECT ON DB_NAME.TAB_NAME TO 丙@'SERVER_IP' IDENTIFIED BY 'YOUR_PASSWD';
FLUSH PRIVILEGES;
需要进入数据库增加授权账户!!!给予相应的权限即可,谢谢采纳,手打