本周有客户提交问题,说他在操作数据库的时候会报错,报错如下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,这个问题是因为服务器上的数据库版本与客户的数据库文件版本不一致导致的,需要使用命令重置下密码就可以了。重置密码的命令如下UPDATE
mysql.user SET password=PASSWORD('11009380') WHERE User='a0106150047';
FLUSH
PRIVILEGES;
郑重声明:本文版权归原作者所有,转载文章仅为传播更多信息之目的,如作者信息标记有误,请第一时间联系我们修改或删除,多谢。