👋 欢迎来到吴老二技术博客,专注运维 / 数据库 / 云原生
首页/数据库/正文

mysql错误:Ignoring query to other database

吴
吴老二
2020-09-21数据库1856 次浏览0 条评论
进入mysql使用命令的时候总是提示:Ignoring query to other database,mysql没有做任何修改,刚刚还使用好好的,怎么就突然这样了,而且还是正式的环境就查看个数据没有做其他的呀。郁闷,从新查看一下命令:
[root@wulaoer ~]# mysql -root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 18
Server version: 5.6.49 MySQL Community Server (GPL)

Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> show databases;
Ignoring query to other database
原来我在敲命令的时候没有制定-u,意思就是用户。这个错误虽然不是什么大的错误,不过值得记一下。
文章底部广告位在后台「广告设置」填写广告代码后显示

评论 0

评论需 登录 后发表(注册并验证邮箱)。
还没有评论,来抢沙发~