【发布时间】:2013-07-06 04:07:47
【问题描述】:
我在使用 XAMPP 的本地主机中收到此警告
Warning: mysql_connect(): 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 in C:\xampp\htdocs\folder\dbconnect.php on line 135
我该如何解决这个警告,它是什么意思?
【问题讨论】:
-
按照错误信息中的说明操作即可。
-
在
dbconnect.php这里贴出mysql_connect的代码来判断问题可能是你写错了密码 -
阅读这篇 SO 帖子:stackoverflow.com/questions/8831183/…