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,如需转载请自行联系原作者

相关文章
|
17天前
|
人工智能 关系型数据库 数据库
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'解决方法
1042 0
MySQL出现:ERROR 1049 (42000): Unknown database 'XXX'解决方法
|
关系型数据库 MySQL
【Mysql】Ignoring query to other database解决方法
【Mysql】Ignoring query to other database解决方法
139 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包缺少的提示: 但是实际上这两个包是不需要的,可以忽略继续安装。
1004 0
|
.NET Windows 开发框架
iis中asp存取Access时报"Microsoft JET Database Engine (0x80004005)未指定错误"的解决方法
操作系统是winxp,在iis中asp存取Access时报"Microsoft JET Database Engine (0x80004005)未指定错误",把IIS里“目录安全性”中的“匿名访问和身份验证控制”取消,换成“集成 WINDOWS身份验证”即可。
844 0
|
1月前
|
Oracle 关系型数据库
19c 开启Oracle Database Vault
19c 开启Oracle Database Vault
22 1
|
17天前
|
人工智能 Oracle 关系型数据库
一篇文章弄懂Oracle和PostgreSQL的Database Link
一篇文章弄懂Oracle和PostgreSQL的Database Link
|
1月前
|
SQL Oracle 安全
Oracle Database Vault Access Control Components
Oracle Database Vault Access Control Components
10 0
|
1月前
|
Oracle 安全 关系型数据库
What Is Oracle Database Vault?
The Oracle Database Vault security controls protect application data from unauthorized access, and helps you to comply with privacy and regulatory requirements. You can deploy controls to block privileged account access to application data and control sensitive operations inside the database using
11 0

热门文章

最新文章