mysql - mysql 错误您的 SQL 语法有错误
问题描述
当我尝试以下命令尝试授予权限时,出现以下错误,谁能告诉我为什么会出现语法错误?
mysql> grant all privileges on ufo.* to 'abc'@'%' identified by 'abc';
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 'identified by 'abc'' at line 1
解决方案
尽量避免被...识别
grant all privileges on ufo.* to 'abc'@'%';
推荐阅读
- php - localhost:8000 无法加载 laravel 项目
- c# - 你如何构造一个实体类来从存储库中获取另一个实体?
- json - 在 Spring Cloud Contract Groovy 合约中使用复杂 JSON
- java - 如何在我的属性中设置 Map 字段,而不必单独列出每个键/值对?
- javascript - JavaScript 警告:分配给函数参数的属性
- node.js - code=H10 desc="App crashed" 找不到解决办法
- python - 从服务器下载解析代码并在应用程序中执行:安全?
- json.net - 使用asp net core 2.1返回所有json对象
- r - 对伽玛参数进行 MLE 时得到错误答案
- javascript - 为什么使用 createReadStream() Node.js 时浏览器一直在加载