关于我们

质量为本、客户为根、勇于拼搏、务实创新

< 返回新闻公共列表

云服务器MySQL 4.1+ using the old怎么解决?

发布时间:2023-05-16 14:19:21
1491984010112764.jpg

Warning: mysql_connect(): mysqlnd cannot connect to MySQL 4.1+ using the old ...


有些程序在安装时,出现如下错误:

image.png

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 K:\WEB_2013\www.aerchi.com\***\***.php

这个问题主要就是因为数据库的登陆密码编码问题,将密码设置成41位,即可。

进入phpmyadmin,点击SQL。输入以下两条命令,然后执行即可。

  1.  
  2. SET SESSION old_passwords = FALSE;
  3. SET PASSWORD = PASSWORD('your password');
复制代码

your password  替换为你自己的密码。



/template/Home/8a/PC/Static