mysql your password has expired

Linux平台,c++执行:

mysql_real_connect(mysql,"127.0.0.1" ,"root","citic","citic",3306,NULL,0)

时报如下错误:
error:Your password has expired. To log in you must change it using a client that supports expired passwords.

解决方案:

mysql your password has expired_第1张图片

执行:mysql_real_connect(mysql,"127.0.0.1" ,"root","111111","11111",3306,NULL,0)



你可能感兴趣的:(mysql your password has expired)