grant all privileges on 'bbs' to 'userone'@'localhost' IDENTIFIED BY PASSWORD 'user2012';
表明ERROR 1064 (42000): You have an error in your SQL syntax; check the manual
我想添加一个用户userone
并授予数据库所有权限bbs
。如何纠正它?
grant all privileges on 'bbs' to 'userone'@'localhost' IDENTIFIED BY PASSWORD 'user2012';
表明ERROR 1064 (42000): You have an error in your SQL syntax; check the manual
我想添加一个用户userone
并授予数据库所有权限bbs
。如何纠正它?
您需要为要授予权限的数据库中的表包含一个指示器。更改查询:
grant all privileges on bbs.* to 'userone'@'localhost' IDENTIFIED BY PASSWORD 'user2012';
为“bbs”数据库中的所有表授予它。
保留'
表名:
grant all privileges on bbs to 'userone'@'localhost' IDENTIFIED BY PASSWORD 'user2012';
grant all privileges on 'bbs.*' to 'userone'@'localhost' identified by ‘user2012’;