LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 974|回复: 15

高手帮忙!

[复制链接]
发表于 2004-9-14 14:19:58 | 显示全部楼层 |阅读模式
我的系统是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

请教高手
发表于 2004-9-14 15:39:48 | 显示全部楼层
rpm -qa | grep -i mysql
信息贴出来看看
发表于 2004-9-14 15:40:18 | 显示全部楼层
rpm -qa | grep -i mysql
信息贴出来看看
 楼主| 发表于 2004-9-17 22:16:45 | 显示全部楼层
[root@mylinux root]# rpm -qa | grep -i mysql
MySQL-client-5.0.1-0
MySQL-server-5.0.1-0
[root@mylinux root]#
发表于 2004-9-18 08:40:32 | 显示全部楼层
在论坛里重新设置访问的MYSQL的密码,你可能安装的时候默认用的ROOT用户密码
 楼主| 发表于 2004-9-18 08:54:52 | 显示全部楼层
看来大家是没有明白我的意思
安装mysql的时候root用户默认是的密码为空
我安装的时候不用密码就可以(在我这成功了)
但是
我把mysql中root用户的密码改了
之后我又重新安装论坛密码为我改了以后的
就出现以上问题

错误

MySQL 返回:
#1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL client
发表于 2004-9-18 10:51:08 | 显示全部楼层
你是如何该的?怎么提示你改变了协议!
发表于 2004-9-18 11:49:34 | 显示全部楼层
明白你的意思,不过我想问一下安装的什么论坛,是phpbb还是vbb.
你最好把你连接数据库时输入密码的页面贴一下,我看看
 楼主| 发表于 2004-9-18 13:12:40 | 显示全部楼层
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 clear the buffer.

mysql> show databases;
+----------+
| Database |
+----------+
| mysql    |
| smartipb |
| test     |
+----------+
3 rows in set (0.00 sec)

mysql>


/***********************************************
 楼主| 发表于 2004-9-18 13:15:34 | 显示全部楼层
什么论坛啊

上传不了图片

显示

此文档中无数据
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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