MySQL4.1+旧版问题解决技巧

莱科网
预计阅读时长 3 分钟
位置: 首页 未命名 正文

warning: mysql_connect(): mysqlnd cannot connect to mysql 4.1+ using the old ...:

MySQL4.1+旧版问题解决技巧

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

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_2013www.aerchi.com******.php

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

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

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

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

本文来自投稿,不代表本站立场,如若转载,请注明出处:
-- 展开阅读全文 --
头像
Windows版Kangle集成环境免安装优化
« 上一篇 2025-01-26 03:56:25
BAT脚本快速配置Windows网络设置
下一篇 » 2025-01-26 03:58:19

相关文章

取消
微信二维码
支付宝二维码

热门文章

动态快讯

目录[+]