MySQL “忽略对其他数据库的查询”命令行
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/36132063/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
"Ignoring query to other database" command line
提问by Mohd Abdul Mujib
I keep getting this weird message, while executing anyquery in command prompt MySQL
.
在 command prompt 中执行任何查询时,我不断收到这条奇怪的消息MySQL
。
ignoring query to other database
I have already tried changing the database by issuing the "use database_name"
command.
我已经尝试通过发出"use database_name"
命令来更改数据库。
回答by Mohd Abdul Mujib
Ok, It seems, I had missed the "u" flag for user so accidentally I had input the following command.
好吧,看来,我错过了用户的“u”标志,所以我不小心输入了以下命令。
mysql -root -p // Faulty connection
Instead of ...
代替 ...
mysql -uroot -p // Correct connection
Notice the missing "u" from the Faulty connection.
请注意错误连接中缺少的“u”。