lee 发表于 2020-7-20 17:59:54

深入MySQL--MySQL常见异常分析及处理方案1

1.Ignoring query to other database

【报错原因】

        登陆数据库缺少参数

        # mysql -root -p


【解决方法】

   补全的参数,整句话意思是使用root用户去登陆密码为000000

        # mysql -uroot -p000000


【错误示例】

        # mysql -root -p
        Enter password:
        Welcome to the MySQL monitor. Commands end with ; or \g.
        Your MySQL connection id is 21
        Server version: 5.5.48-log Source distribution

        Copyright (c) 2000, 2016, 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
        mysql> Ctrl-C -- exit!
        Aborted

**** Hidden Message *****

17716054098 发表于 2020-7-23 18:51:04

学习学习

sujianfeng 发表于 2021-1-13 14:25:56

谢谢分享

yangxing 发表于 2021-8-20 15:22:05

报错全吗
页: [1]
查看完整版本: 深入MySQL--MySQL常见异常分析及处理方案1