[Err] 1143 - SELECT command denied to user 'XX'@'%' for column 'XXX' in table 'XX'

简介: [Err] 1143 - SELECT command denied to user 'XX'@'%' for column 'XXX' in table 'XX'

今天,用Navicat导入数据库的时候报了这么一个错误:

[Err] 1143 - SELECT command denied to user 'XX'@'%' for column 'XXX' in table 'XX'

image.png

SELECT命令拒绝用户’XX’@’%’。

一想,当然会拒绝,因为当前用的不是’XX’账户。

快捷起见,不用命令,直接用Navicat新建账户并授权。

  • 用root用户连接MySQL数据库
  • 新建用户
    image.png

  • 给新建用户授予服务器权限
    image.png

  • 修改高级里的参数(改大一些,不然导入数据查询较多可能会失败)
    image.png

OK,数据导入成功!


目录
相关文章
|
7月前
|
缓存 Java 数据库连接
MybatisPlusException: Your property named “xxx“ cannot find the corresponding database column name!
MybatisPlusException: Your property named “xxx“ cannot find the corresponding database column name!
54 0
|
6月前
|
NoSQL MongoDB
解决 :MongoDB couldn‘t add user: not authorized on ‘your db‘ to execute command
解决 :MongoDB couldn‘t add user: not authorized on ‘your db‘ to execute command
140 0
|
关系型数据库 MySQL
【Mysql】报#1166 - Incorrect column name 'UId '
【Mysql】报#1166 - Incorrect column name 'UId '
95 0
|
SQL 关系型数据库 MySQL
[Err] 1294 - Invalid ON UPDATE clause for 'comment_time' column【详细解决办法】
[Err] 1294 - Invalid ON UPDATE clause for 'comment_time' column【详细解决办法】
620 0
[Err] 1294 - Invalid ON UPDATE clause for 'comment_time' column【详细解决办法】
|
SQL 关系型数据库 MySQL
MySQL:[Err] 1292 - Incorrect datetime value: ‘0000-00-00 00:00:00‘ for column ‘CREATE_TIME‘ at row 1
MySQL:[Err] 1292 - Incorrect datetime value: ‘0000-00-00 00:00:00‘ for column ‘CREATE_TIME‘ at row 1
876 0
MySQL:[Err] 1292 - Incorrect datetime value: ‘0000-00-00 00:00:00‘ for column ‘CREATE_TIME‘ at row 1
|
网络协议 关系型数据库 MySQL
应用中抛出SELECT/UPDATE/INSERT/DELETE command denied to user 'XXX'@'XXX.XXX.XXX.XXX' for table 'xxx' 的5种原因
应用中抛出SELECT/UPDATE/INSERT/DELETE command denied to user 'XXX'@'XXX.XXX.XXX.XXX' for table 'xxx' 的5种原因
应用中抛出SELECT/UPDATE/INSERT/DELETE command denied to user 'XXX'@'XXX.XXX.XXX.XXX' for table 'xxx' 的5种原因
|
SQL
ORA-00030: User session ID does not exist.
同事在Toad里面执行SQL语句时,突然无线网络中断了,让我检查一下具体情况,如下所示(有些信息,用xxx替换,因为是在处理那些历史归档数据,使用的一个特殊用户,所以可以用下面SQL找到对应的会话信息): SQL> SELECT B.
1876 0
|
关系型数据库 MySQL 存储
MySQL 异常-- 1005 - Can't create table '.\blog\category.frm' (errno: 150)
异常 异常.png 原因 外键表类型不匹配或者数据库存储引擎不一致.
1280 0