更新 PHP5.4 并具有 MySQL4.1+ 时出现 Wordpress 连接错误
Wordpress connection error when update PHP5.4 and having MySQL4.1+
我帮助修复的页面有很多问题。请注意,我在 WordPress 方面经验不足。现在我正在尝试在我安装的 WordPress 上全局使用 Php5.4。但是随后出现错误,我的数据库用户和密码可能是错误的。我按照前段时间很多帖子中的说明更改了密码。但这并不能解决问题。现在我的 wordpress 确实可以使用 Php5.2 和 Mysql4.1+ 如果这与问题有任何关系。我无法更新我的 wordpress 所在服务器的 mysql 原因。我读到 php5.4 和 mysql5.1 的问题是散列存在一些兼容性问题密码。谁能指出我正确的方向。我需要将我的 php 升级到 5.4,因为我需要安装一个需要它的插件。
当我阅读错误 .log 时,弹出的内容如下:
[01-Jul-2015 16:47:56 UTC] PHP 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 /home/hfeuchte/public_html/wp-includes/wp-db.php on line 1142
[01-Jul-2015 16:48:00 UTC] PHP 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 /home/hfeuchte/public_html/wp-includes/wp-db.php on line 1142
正如我所说,我已经尝试过更改密码、更新密码,甚至创建一个新用户来查看密码是否获取了 PHP5.4 读取所需的哈希值。如果还有什么我可以尝试的,请提出建议 :P 感谢您的宝贵时间 :D
好吧,在 WordPress 版主的帮助下。我最终通过SSH更改了密码,并确保密码以41个字符的格式保存。然后激活 PHP5.4 并且 wala 它起作用了 :P 如果 MySQL 的版本更高一点,也许可以通过 SQL 查询更改密码,或者 CPanel 可能起作用。只是为了确保使用 SSH。对我来说它奏效了。
我帮助修复的页面有很多问题。请注意,我在 WordPress 方面经验不足。现在我正在尝试在我安装的 WordPress 上全局使用 Php5.4。但是随后出现错误,我的数据库用户和密码可能是错误的。我按照前段时间很多帖子中的说明更改了密码。但这并不能解决问题。现在我的 wordpress 确实可以使用 Php5.2 和 Mysql4.1+ 如果这与问题有任何关系。我无法更新我的 wordpress 所在服务器的 mysql 原因。我读到 php5.4 和 mysql5.1 的问题是散列存在一些兼容性问题密码。谁能指出我正确的方向。我需要将我的 php 升级到 5.4,因为我需要安装一个需要它的插件。
当我阅读错误 .log 时,弹出的内容如下:
[01-Jul-2015 16:47:56 UTC] PHP 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 /home/hfeuchte/public_html/wp-includes/wp-db.php on line 1142
[01-Jul-2015 16:48:00 UTC] PHP 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 /home/hfeuchte/public_html/wp-includes/wp-db.php on line 1142
正如我所说,我已经尝试过更改密码、更新密码,甚至创建一个新用户来查看密码是否获取了 PHP5.4 读取所需的哈希值。如果还有什么我可以尝试的,请提出建议 :P 感谢您的宝贵时间 :D
好吧,在 WordPress 版主的帮助下。我最终通过SSH更改了密码,并确保密码以41个字符的格式保存。然后激活 PHP5.4 并且 wala 它起作用了 :P 如果 MySQL 的版本更高一点,也许可以通过 SQL 查询更改密码,或者 CPanel 可能起作用。只是为了确保使用 SSH。对我来说它奏效了。