mariadb报Ignoring query to other database解决方法

简介:

问题描述,今天登陆mariadb时,发现任何sql语句不能执行,报以下错误

1
2
3
4
5
6
MariaDB [(none)]> show databases;
Ignoring query  to  other  database
MariaDB [(none)]> show tables;
Ignoring query  to  other  database
MariaDB [(none)]>  select  database ();
Ignoring query  to  other  database

折腾了好长时间才发现,原来是登陆mariadb时敲错了一个字母如下所示

1
2
3
4
5
6
7
8
9
10
11
12
[root@kvm opt]# mysql -rroot -p123456
Welcome  to  the MariaDB monitor.  Commands  end  with  or  \g.
Your MariaDB  connection  id  is  10
Server version: 5.5.52-MariaDB MariaDB Server
Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab  and  others.
Type  'help;'  or  '\h'  for  help. Type  '\c'  to  clear the  current  input statement.
MariaDB [(none)]> show databases;
Ignoring query  to  other  database
MariaDB [(none)]> show tables;
Ignoring query  to  other  database
MariaDB [(none)]>  select  database ();
Ignoring query  to  other  database

误把"-u"敲成了"-r",同志们敲命令一定要仔细啊,要不然都是泪啊。




本文转自 茁壮的小草 51CTO博客,原文链接:http://blog.51cto.com/wn2100/1963525,如需转载请自行联系原作者

相关文章
|
1月前
|
人工智能 关系型数据库 数据库
PostgreSQL 常见问题解决方案 - ERROR: database is being accessed by other users
PostgreSQL 常见问题解决方案 - ERROR: database is being accessed by other users
|
关系型数据库 MySQL 数据库
MySQL出现:ERROR 1049 (42000): Unknown database 'XXX'解决方法
MySQL出现:ERROR 1049 (42000): Unknown database 'XXX'解决方法
1091 0
MySQL出现:ERROR 1049 (42000): Unknown database 'XXX'解决方法
|
关系型数据库 MySQL
【Mysql】Ignoring query to other database解决方法
【Mysql】Ignoring query to other database解决方法
142 0
【Mysql】Ignoring query to other database解决方法
|
Oracle 关系型数据库 Linux
RHEL 6/CentOS 6上安装Oracle 11.2.0.3(Gird/Database)及以上缺少pdksh包的解决方法
在RHEL 6/CentOS 6上安装Oracle Grid 11.2.0.3/Oracle Database 11.2.0.3及以上时,出现elfutils-libelf-devel和pdksh包缺少的提示: 但是实际上这两个包是不需要的,可以忽略继续安装。
1009 0
|
.NET Windows 开发框架
iis中asp存取Access时报"Microsoft JET Database Engine (0x80004005)未指定错误"的解决方法
操作系统是winxp,在iis中asp存取Access时报"Microsoft JET Database Engine (0x80004005)未指定错误",把IIS里“目录安全性”中的“匿名访问和身份验证控制”取消,换成“集成 WINDOWS身份验证”即可。
856 0
|
1月前
|
SQL Oracle 关系型数据库
WARNING: Too Many Parse Errors With error=911 When Running a JDBC Application Connected to an Oracle 19c database
WARNING: Too Many Parse Errors With error=911 When Running a JDBC Application Connected to an Oracle 19c database (
23 2
|
1月前
|
Oracle 关系型数据库
19c 开启Oracle Database Vault
19c 开启Oracle Database Vault
36 1
|
24天前
|
SQL Oracle 关系型数据库
Connect to Autonomous Database Using Oracle Database Tools
Connect to Autonomous Database Using Oracle Database Tools
23 1
|
1月前
|
人工智能 Oracle 关系型数据库
一篇文章弄懂Oracle和PostgreSQL的Database Link
一篇文章弄懂Oracle和PostgreSQL的Database Link