數據庫操作時報錯,原因是什麼?

最近有客戶提交問題,說他在操作數據庫的時候會報錯,報錯如下mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication. Please use an administration tool to reset your password with the command SET PASSWORD = PASSWORD('your_existing_password'). This will store a new, and more secure, hash value in mysql.user. If this user is used in other>

答:這個問題是因為服務器上的數據庫版本與客戶的數據庫文件版本不一致導致的,需要使用命令重置下密碼就可以了。

重置密碼的命令如下UPDATE mysql.user SET password=PASSWORD('11009380') WHERE User='a0106150047';

FLUSH PRIVILEGES;


分享到:


相關文章: