MySQL 创建数据库 CentOS(6 - 64位)错误 1064(42000)

MySQL 创建数据库 CentOS(6 - 64位)错误 1064(42000)

每当我输入:

GRANT ALL PRIVILEGES minecraft.* TO 'minecraftu'@'%' IDENTIFIED BY '********';


它给了我一个错误:

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'minecraft.* TO 'minecraftu'@'%' IDENTIFIED BY '********'' at line 1

答案1

你漏掉了这个词ON

GRANT ALL PRIVILEGES ON minecraft.* ....

相关内容