高手帮忙!

由 ujnjt 在 09-14-2004 14:19 发表:

高手帮忙!

我的系统是redhat9.0

我安装了apache2.0.50

php.4.3.8

都成功了

接下来我装MySQL-5.0.1(rpm格式 客户端和服务器端)

没有改数据库root用户密码时

安上一个论坛可以运行

但是我改了root用户密码重启mysql以后

再用php连接数据库

出现了问题

就是连不上

并出现如下错误:

错误

MySQL 返回:

#1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL client

请教高手


由 konds 在 09-14-2004 15:39 发表:


rpm -qa | grep -i mysql

信息贴出来看看


由 konds 在 09-14-2004 15:40 发表:


rpm -qa | grep -i mysql

信息贴出来看看


由 ujnjt 在 09-17-2004 22:16 发表:


[root@mylinux root]# rpm -qa | grep -i mysql

MySQL-client-5.0.1-0

MySQL-server-5.0.1-0

[root@mylinux root]#


由 smile787 在 09-18-2004 08:40 发表:


在论坛里重新设置访问的MYSQL的密码,你可能安装的时候默认用的ROOT用户密码


由 ujnjt 在 09-18-2004 08:54 发表:


看来大家是没有明白我的意思

安装mysql的时候root用户默认是的密码为空

我安装的时候不用密码就可以(在我这成功了)

但是

我把mysql中root用户的密码改了

之后我又重新安装论坛密码为我改了以后的

就出现以上问题

错误

MySQL 返回:

#1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL client


由 smile787 在 09-18-2004 10:51 发表:


你是如何该的?怎么提示你改变了协议!


由 josephvan 在 09-18-2004 11:49 发表:


明白你的意思,不过我想问一下安装的什么论坛,是phpbb还是vbb.

你最好把你连接数据库时输入密码的页面贴一下,我看看


由 ujnjt 在 09-18-2004 13:12 发表:


ok

/***************************************

[root@mylinux root]# mysql

Welcome to the MySQL monitor. Commands end with ; or \g.

Your MySQL connection id is 7 to server version: 5.0.1-alpha-standard

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> use mysql;

Reading table information for completion of table and column names

You can turn off this feature to get a quicker startup with -A

Database changed

mysql> update user set password=PASSWORD('mypassword') where user='root';

Query OK, 2 rows affected (0.00 sec)

Rows matched: 2 Changed: 2 Warnings: 0

mysql> exit

Bye

[root@mylinux root]# service mysql restart

Killing mysqld with pid 2932

Wait for mysqld to exit. done

[root@mylinux root]# mysql -h localhost -u root -p

Enter password:

Welcome to the MySQL monitor. Commands end with ; or \g.

Your MySQL connection id is 1 to server version: 5.0.1-alpha-standard

Type 'help;' or '\h' for help. Type '\c' to c

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus