Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

数据库问题,盼高手指导一下解决方案!

[复制链接]
11826600 发表于 2006-8-11 10:36:56 | 显示全部楼层 |阅读模式
Warning: mysql_connect() [function.mysql-connect]: Client does not support authentication protocol requested by server; consider upgrading MySQL client in D:\Web\Link\db_conn.php on line 4
数据库连接错误!请确认配置文件参数正确!




Discuz! info: Can not connect to MySQL server

Time: 2006-8-11 10:35am
Script: /club/index.php

Error: Client does not support authentication protocol requested by server; consider upgrading MySQL client
Errno.: 1251

Similar error report has beed dispatched to administrator before.
 楼主| 11826600 发表于 2006-8-11 11:26:43 | 显示全部楼层
mysql>update mysql user set password = old_password('5201314')
      ->where host = '192.168.1.143' and user = 'root';
error 1046(3D000):No database selected.
mysql>update mysql user set password = old_password('5201314')
      ->where host = 'localhost' and user = 'root';
error 1046(3D000):No database selected
回复

使用道具 举报

紫琼 发表于 2006-8-11 14:00:47 | 显示全部楼层
在MySql> 命令行下输入:SET PASSWORD FOR user@localhost = OLD_PASSWORD('pw');
其中:数据库使用的用户名是user ,密码是 pw (上面的语句后面的分号不可少)
http://dev.mysql.com/doc/refman/5.0/en/old-client.html
回复

使用道具 举报

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

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-12-28 13:30 , Processed in 0.021197 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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