我在非指挥情况下遇到指挥问题。当我尝试连接到托管在 HOSTGATOR 服务器中的 mysql 服务器时,我收到此错误:
Could not connect to database. SQLSTATE[HY000] [2000] 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.
这里的解决方案非常简单和详细: http ://www.phpro.org/articles/Database-Connection-Failed-Mysqlnd-Cannot-Connect-To-MySQL.html
但是.... HostGator 不想更改“my.cnf”文件!由于我的特权,本教程中的大多数查询都被拒绝了。
我还缺少其他解决方案吗?谢谢!