mysql版本冲突的问题

yq8359 2005-05-27 11:35:50
我的my.ini文件

Installation Instructions
# ----------------------------------------------------------------------
#
# On Linux you can copy this file to /etc/my.cnf to set global options,
# mysql-data-dir/my.cnf to set server-specific options
# (@localstatedir@ for this installation) or to
# ~/.my.cnf to set user-specific options.
#
# On Windows you should keep this file in the installation directory
# of your server (e.g. C:\Program Files\MySQL\MySQL Server 4.1). To
# make sure the server reads the config file use the startup option
# "--defaults-file".
#
# To run run the server from the command line, execute this in a
# command line shell, e.g.
# mysqld --defaults-file="C:\Program Files\MySQL\MySQL Server 4.1\my.ini"
#
# To install the server as a Windows service manually, execute this in a
# command line shell, e.g.
# mysqld --install MySQL41 --defaults-file="C:\Program Files\MySQL\MySQL Server 4.1\my.ini"
#
# And then execute this in a command line shell to start the server, e.g.
# net start MySQL41

C:\Program Files\MySQL\MySQL Server 4.1这是我第一次装mysql的目录,现在已经卸了,为什么还显示啊?连接数据库时会显示这个警告:
Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in D:\phpweb\test\mysql.php on line 2
是版本冲突吗?怎么解决?
...全文
99 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
yq8359 2005-05-27
  • 打赏
  • 举报
回复
改了密码还是不行啊
ray929 2005-05-27
  • 打赏
  • 举报
回复
mysql4.1对密码认证方式进行了更改
请用以下的方式重新设定密码:
用新版的mysql自带的mysql.exe登陆:
mysql -u root -p xxxxxx
然后执行下面的sql语句:


SET PASSWORD FOR 'some_user'@'some_host' = OLD_PASSWORD('newpwd');

或者

mysql> UPDATE mysql.user SET Password = OLD_PASSWORD('newpwd') WHERE Host = 'some_host' AND User = 'some_user';
mysql> FLUSH PRIVILEGES;

一般some_user 是root
newpwd是你的新密码

21,886

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧