在mysql命令行界面输入
mysql> set old_passwords=0;mysql> SET PASSWORD FOR hhds_test=PASSWORD(‘hhds_test‘);
即可。
这种办法的优点是不需要修改代码。
mysql问题Connection using old (pre-4.1.1) authentication protocol refused (client option 'secure_auth' enabled)的解决方法
原文:http://www.cnblogs.com/webbery/p/4853821.html