ERROR 2049 (HY000): Connection using old

MySQL 5.6 客户端访问 MySQL4.0.20  遇到如下错误

ERROR 2049 (HY000): Connection using old (pre-4.1.1) authentication protocol refused (client option 'secure_auth' enabled)

 

$mysql -h10.0.149.13 -uroot -p123456 -P3306
Warning: Using a password on the command line interface can be insecure.
ERROR 2049 (HY000): Connection using old (pre-4.1.1) authentication protocol refused (client option 'secure_auth' enabled)


$ mysql --help|grep secure-auth
  --secure-auth       Refuse client connecting to server if it uses old
                      (Defaults to on; use --skip-secure-auth to disable.)
secure-auth                       TRUE


$mysql -h10.0.149.13 -uroot -p123456 -P3306  --skip-secure-auth
Warning: Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3356
Server version: 4.0.20-standard

Copyright (c) 2000, 2013, 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> select version();
+-----------------+
| version()       |
+-----------------+
| 4.0.20-standard |
+-----------------+
1 row in set (0.05 sec)


你可能感兴趣的:(MySQL)