http://www.mysql.com/doc/en/GRANT.html

解决方案 »

  1.   

    增加新用户。
    格式:grant select on 数据库.* to 用户名@登录主机 identified by "密码"   
    例   增加一个用户test1密码为abc,让他可以在任何主机上登录,并对所有数据库有查询、插入、修改、删除的权限。首先用以root用户连入MYSQL,然后键入以下命令:   
    grant select,insert,update,delete on *.* to test1@"%" Identified by "abc";
      

  2.   

    加了以后,别忘了再执行一下
    flush privilege;
      

  3.   

    ERROR 1064: You have an error in your SQL syntax.  Check the manual that corresp
    onds to your MySQL server version for the right syntax to use near 'flush privil
    ege' at line 2为什么会这样??