mysql,phpmyadmin 的安装 时遇到的问题[1251 - Client does yAdmin tried to connect
2008-04-12 18:09
495 查看
1.安装完phpmyadmin时登陆的时候
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in config.inc.php and make sure that they correspond to the information given by the administrator of the MySQL server.
修改 config.ini.php 修改SOCK的路径
具体如下
先设置用户名和密码,大概在config.ini.php里的75行左右
$cfg['Servers'][$i]['auth_type'] = 'cookie'; //还有这个比较重要默认是"config"
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '123456';
2.在这之后还会有一个
#1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL client
出现这种问题也只有在MYSQL4.1.x以上版本,用4.0.x就没问题了
原因是因为你使用的mysql服务器版本中使用了新的密码验证机制,这需要客户端的版本要在4.0以上,原来的密码函数被改为old_password ();,这样使用password()生成的密码在旧的版本上的客户端就不好使了,而PHP中的MYSQL客户端都是3.23的(当然,mysqli的扩展除外),问题就在这了。
目前已知解决方法:
(1)、进入命令行下,转到MYSQL目录的BIN目录下,进入MYSQL命令行模式:
例:d:/mysql/bin>mysql -uroot -p123 (用户root,密码123)
(2)、输入命令:
mysql>set password for 'root'@'localhost'=old_password('123'); (注意冒号不能少)
(3)、退入MYSQL命令行:
mysql>q
3.还有一个就是在安装mysql时候安装不成功就是在最后面的时候启动start service不过总出现(X)
解决办法:
你之前安装过MYSQL服务了,你在关掉防火墙,,删掉以前安装的残余记录,然后重装,在"INSTALL AS WINDOWS SERVICE "步骤的时候,默认"SERVICE NAME "为(MYSQL),在下拉框中选择另一个
不要用之前用过的名字就可以了
我在安的时候就就是遇到这些问题,希望能给你们一些帮助,也希望你们再有什么问题发表上来一起讨论!
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in config.inc.php and make sure that they correspond to the information given by the administrator of the MySQL server.
修改 config.ini.php 修改SOCK的路径
具体如下
先设置用户名和密码,大概在config.ini.php里的75行左右
$cfg['Servers'][$i]['auth_type'] = 'cookie'; //还有这个比较重要默认是"config"
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '123456';
2.在这之后还会有一个
#1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL client
出现这种问题也只有在MYSQL4.1.x以上版本,用4.0.x就没问题了
原因是因为你使用的mysql服务器版本中使用了新的密码验证机制,这需要客户端的版本要在4.0以上,原来的密码函数被改为old_password ();,这样使用password()生成的密码在旧的版本上的客户端就不好使了,而PHP中的MYSQL客户端都是3.23的(当然,mysqli的扩展除外),问题就在这了。
目前已知解决方法:
(1)、进入命令行下,转到MYSQL目录的BIN目录下,进入MYSQL命令行模式:
例:d:/mysql/bin>mysql -uroot -p123 (用户root,密码123)
(2)、输入命令:
mysql>set password for 'root'@'localhost'=old_password('123'); (注意冒号不能少)
(3)、退入MYSQL命令行:
mysql>q
3.还有一个就是在安装mysql时候安装不成功就是在最后面的时候启动start service不过总出现(X)
解决办法:
你之前安装过MYSQL服务了,你在关掉防火墙,,删掉以前安装的残余记录,然后重装,在"INSTALL AS WINDOWS SERVICE "步骤的时候,默认"SERVICE NAME "为(MYSQL),在下拉框中选择另一个
不要用之前用过的名字就可以了
我在安的时候就就是遇到这些问题,希望能给你们一些帮助,也希望你们再有什么问题发表上来一起讨论!
相关文章推荐
- mac 安装 python mysqlclient 遇到的问题及解决方法
- 解决Python2.7 连接MySQL数据库遇到'can't connect to MySQL server on 'localhost'(10061)'问题
- MySQL安装问题--Can't connect to MySQL server on localhost (10061)解决方法
- macOS使用django安装mysqlclient遇到的问题(mysqlclient 1.3.3 or newer is required)
- 重新安装mysql 出现问题 can't connect to mysql server on 'localhost'的解决办法
- 解决ECshop遇到can't connect to mysql 的“bug”级问题
- hadoop遇到的问题: org.apache.hadoop.ipc.Client: Retrying connect to server异常的解决
- percona innobackupex 遇到 connect to MySQL server as DBD::mysql module is not installed 问题
- [Centos] mod_wsgi 安装流程以及遇到问题解决办法。apxs: command not found 或 Sorry, Python developer package does not appear to be installed.
- Mysql4安装Client does not support authentication protocol requested问题的解决
- 解决PHPCMS 安装问题 Can not connect to MySQL server
- 遇到问题----Can't connect to local MySQL server through socket '/tmp/mysql.sock'
- MySQL遇到的问题-1-ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld
- mysql问题解决:mysqladmin: connect to server at 'localhost' failed
- PHPMYADMIN: #1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL client
- Eclipse(Galileo)下安装插件遇到(Cannot connect to keystore)问题
- mysql4.1以上版本连接时出现Client does not support authentication protocol #1251错误问题解决办法
- 安装mysql绿色版及解决Can't connect to MySQL server on 'localhost' (10061)问题
- MYSQL安装问题 1130 host localhost is not allowed to connect to this MYSQL server
- mysql4.1以上版本连接时出现Client does not support authentication protocol #1251错误问题解决办法