最近在给一台机器重新配置环境,因为要求xp-iis6+mysql5+php5+zend3,能在本机调试dz论坛,之前机器安装过mysql。重新安装即显示Your security...失败.. 卸载后,清空mysql目录(必要时也要清注册表) 重新安装后提示成功,服务进程也能正常启动,也能进mysql控制台。配置完IIS+php后,php运行正常,于是安装dz,显示mysql-支持,却在配置数据库的时候无法进行下一步操作,且无任何提示。已经修改过php.ini,copy了dll文件,可关联mysql却怎么也关联不上。起初考虑是不是dz程序的问题,在官方搜到许多同样的问题但均未解决。查看php信息,phpinfo里提示mysql "not value",DZ的error log里显示Client does not support authentication protocol requested by server; consider upgrading MySQL client.
解决方案
首先 开始-运行:
mysql -u root -p (输入密码)
进入控制台
Enter password: ******
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 11
Server version: 5.0.41-community-nt MySQL Community Edition (GPL)
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> Update mysql.user SET Password = OLD_PASSWORD('111111')