求大神提供解決方法
錯誤提示如下:
mysql connect error: 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 scripts executed by PHP 5.2 or earlier you might need to remove the old-passwords flag from your my.cnf file
在網路搜索以下解決方法,沒用:
SET old_passwords = 0;
UPDATE mysql.user SET PASSWORD = PASSWORD( 'www.aerchi.com' ) WHERE User = 'aerchi' LIMIT 1 ;
SELECT LENGTH( PASSWORD ) FROM mysql.user WHERE User = 'aerchi';
FLUSH PRIVILEGES ;
uj5u.com熱心網友回復:
mysql版本是怎樣的 5.6 和5.7是有區別的。5.7 authentication_string()
uj5u.com熱心網友回復:
進mysql直接執行uj5u.com熱心網友回復:
進mysql直接執行SET PASSWORD = PASSWORD('your_existing_password')轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/89504.html
標籤:MySQL
上一篇:Mysql,啟動tomcat,登錄專案都沒問題,但是只要我一點擊專案中的模塊,需要從資料庫拉資料,mysql服務就報錯自動停止了
下一篇:請教各位一個 資料庫設計的問題
