0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【MySQL】エラー「Ignoring query to other database」の原因とは?!

Posted at

概要

mysqlにログインして以下のように操作していると...

mysql> USE my_database;
Database changed
mysql> 
mysql> 
mysql> show databases;
Ignoring query to other database

Ignoring query to other database」ってなんや!?
となりましたので、解決方法を紹介します。

解決方法

答えは単純でした。

ログイン時に

mysql -root -p

と入力していためです。

正しくは、

mysql -uroot -p

ですね。

ログインも成功してUSE my_database;は正常に実行できていたので、しばらく「あれなんで?」となりましたが、答えはシンプルでした。以上!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?