ThinkPHP3.2连接万网主机MYSQL版本: 5.1.48-log报错

浏览:2459 发布日期:2014/06/09 分类:求助交流 关键字: ThinkPHP3.2 MYSQLMySQL 4.1+
报错信息:
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

网上说
SET old_passwords = 0;
UPDATE mysql.user SET password = PASSWORD(`password`) WHERE user = `user`;
FLUSH PRIVILEGES;

这个是虚拟主机,没法执行这个命令,没权限

求大神给个解决办法,拜谢。
最佳答案
评论( 相关
后面还有条评论,点击查看>>