Fork me on GitHub

mysql问题Connection using old (pre-4.1.1) authentication protocol refused (client option 'secure_auth' enabled)的解决方法

在mysql命令行界面输入

mysql> set old_passwords=0;
mysql> SET PASSWORD FOR hhds_test=PASSWORD('hhds_test');

即可。

这种办法的优点是不需要修改代码。

posted @ 2015-10-03 20:55  webberg  阅读(545)  评论(0编辑  收藏  举报