zoukankan      html  css  js  c++  java
  • mysql 连接命令行报错

    ➜ heidsoft-mycat mysql -h172.16.59.20 -P8066 -uroot -p123456
    mysql: [Warning] Using a password on the command line interface can be insecure.
    ERROR 1045 (HY000): Access denied for user 'root', because password is error
    ➜ heidsoft-mycat mysql -h172.16.59.20 -P8066 -uroot -p
    Enter password:
    ERROR 1045 (HY000): Access denied for user 'root', because password is error
    ➜ heidsoft-mycat mysql -h172.16.59.20 -P8066 -uroot -p --default_auth=mysql_native_password
    Enter password:
    Welcome to the MySQL monitor. Commands end with ; or \g.
    Your MySQL connection id is 8
    Server version: 5.6.29-mycat-1.6.7.6-release-20211221142218 MyCat Server (OpenCloudDB)

    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;
    +----------+
    | DATABASE |
    +----------+
    | TESTDB |
    +----------+
    1 row in set (0.00 sec)

    mysql>

    黑洞@heidsoft
    Github:https://github.com/heidsoft
    微博:http://weibo.com/liuganbin
    热衷云计算和大数据
    关注CloudStack,OpenStack,Linux c/c++/python/java
    关注研究新技术
  • 相关阅读:
    python
    python
    python
    python
    python
    python
    python
    python
    人生苦短,我用python,为什么选择python,python简介
    Mysql-查询
  • 原文地址:https://www.cnblogs.com/heidsoft/p/15766927.html
Copyright © 2011-2022 走看看