标签:blog http io ar os 使用 sp for strong
测试环境新装了MySQL服务器,在登陆时无法成功登陆。其提示 为使用的旧的认证协议而被拒绝。其具体的错误提示为ERROR 2049 (HY000): Connection using old (pre-4.1.1) authentication protocol refused (client option ‘secure_auth‘ enabled)以下是关于这个问题的描述及其解决方案,供大家参考。
1、故障现象
[root@HKBO ~]# mysqladmin -u root password ‘Mysqlxxx‘
[root@HKBO ~]# mysql -uroot -p
Enter password:
ERROR 2049 (HY000): Connection using old (pre-4.1.1) authentication protocol refused (client option ‘secure_auth‘ enabled)
[root@HKBO ~]# mysql -uroot -p --skip-secure-auth
Enter password:
ERROR 1275 (HY000): Server is running in --secure-auth mode, but ‘root‘@‘localhost‘ has a password in the old format; please change the password to the new format
2、有关secure_auth参数
Command-Line Format | --secure-auth |
||
System Variable | Name | secure_auth |
|
Variable Scope | Global | ||
Dynamic Variable | Yes | ||
Permitted Values (<= 5.6.4) | Type | boolean |
|
Default | OFF |
||
Permitted Values (>= 5.6.5) | Type | boolean |
|
Default | ON |
This
option causes the server to block connections by clients that attempt
to use accounts that have passwords stored in the old (pre-4.1) format.
Use it to prevent all use of passwords employing the old format (and
hence insecure communication over the network). Before MySQL 5.6.5, this
option is disabled by default. As of MySQL 5.6.5, it is enabled by
default; to disable it, use --skip-secure-auth
.
Server startup fails with an error if this option is enabled and the privilege tables are in pre-4.1 format. SeeSection B.5.2.4, “Client does not support authentication protocol”.
The mysql client also has a --secure-auth
option, which prevents connections to a server if the server requires a password in old format for the client account.
Passwords
that use the pre-4.1 hashing method are less secure than passwords that
use the native password hashing method and should be avoided. Pre-4.1
passwords are deprecated and support for them will be removed in a
future MySQL release. Consequently, disabling secure authentication
using --skip-secure-auth
is also deprecated.
3、分析及解决
ERROR 2049 (HY000): Connection using old (pre-4.1.1)
标签:blog http io ar os 使用 sp for strong
原文地址:http://www.cnblogs.com/yishujiayuan/p/4153613.html