首页> 实战笔录 >PHP开发笔记 >PHP PHP

php开发的网站上传到阿里云虚拟主机后访问时报错

作者:小萝卜 2019-04-17 浏览 1543

简介php开发的网站上传到阿里云服务器报错 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

php开发的网站上传到阿里云虚拟主机后无法访问,报错如下:

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

你的PHP程序应该是从MySQL 4.1之前的版本升到新版MySQL库了,按照提示更新密码即可。

我们登录万网控制平台,计入到数据库管理,点击重置密码,选择41位修改密码即可.然后网站就可以访问了

注意选择41位修改密码

然后访问网站就可以正常访问了

很赞哦! (0)

文章评论

    高端网站建设