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_real_connect(mysql,"127.0.0.1" ,"root","111111","11111",3306,NULL,0)