网硕互联技术交流社区

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 2306|回复: 0

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

[复制链接]

4

主题

4

帖子

42

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
42
发表于 2017-11-13 09:27:00 | 显示全部楼层 |阅读模式
有些程序在安装时,出现如下错误:
TIM图片20171113092311.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. SET SESSION old_passwords = FALSE;
  2. SET PASSWORD = PASSWORD('your password');
复制代码
your password  替换为你自己的密码。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|网硕互联技术交流社区

GMT+8, 2024-4-25 08:43 , Processed in 0.251565 second(s), 21 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表