Home > Database > Mysql Tutorial > MySQL出现Ignoringquerytootherdatabase的问题_MySQL

MySQL出现Ignoringquerytootherdatabase的问题_MySQL

WBOY
Release: 2016-06-01 13:02:20
Original
1195 people have browsed it

今天使用mysql的时候,输入任意一条命令都会出:

Ignoring query to other database

这条错误信息,很是奇怪。后来才发现是登录数据库时,少了个-u的参数。。

正确的命令是:

mysql -uroot -p
Copy after login
我输入的是:
mysql -root -p
Copy after login
加上-u就可以了
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template