注册 登录
编程论坛 MySQL论坛

无法创建用户,提示语法错误

吃爆米花的老头 发布于 2006-02-28 17:39, 1480 次点击
我用的是mysql5.0.0-alpha-nt
创建了一个会员数据库members
用root身份创建新用户,命令如下:
grant all
on members.*
to double identified by 'double123'
with grant option;
提示错误如下:
ERROR 1064(42000):You have an error in your SQL syntax.Check the mamual that corresponds to your MySQl server version for the right syntax to use near 'double identified by "double123" with grant option'at line 3。
请问如何解决这个问题。。。。。
1 回复
#2
京山游侠2006-02-28 23:15
呵呵,double 是MySQL的保留字,不能用作用户名。

我把你的语句只是把double改成double1,就运行成功了
1