Tags
apache backup C cache cassandra checkbox config crontab database editplus firefox function html ie6 java javascript jquery jsScrolling lampp linux memcache mysql nginx NoSql packer pear php plugin popup ppt python scrollbar server shell svn Tips tool ttserver ubuntu vim VirtualHost vps win xdebug ZendStudioCategories
-
Recent Posts
- 删除 MySQL 二进制日志(log-bin)
- 抽象类与接口类
- MySQL 4.1+ using old authentication
- 在VPS上搭建VPN
- Windows 下安装 Memcached
- 理解 Memcache 的服务器端与客户端
- 理解PHP中Mysql的永久连接
- Web-Server 中 PHP 的两种工作方式
- Zend Studio 使用 Xdebug 断点调试
- Zend Studio 中 PHP Language Library 的用处
- Windows 下安装 mongoDB
- C 操作 MySql
- Linux下SVN客户端版本库定时更新
- 开启SVN-Server上的密码认证功能
- 通过rsync定期备份windows下svn目录到linux
Archives
- September 2011 (1)
- August 2011 (3)
- July 2011 (4)
- June 2011 (9)
- May 2011 (1)
- April 2011 (3)
- March 2011 (2)
- January 2011 (3)
- October 2010 (2)
- September 2010 (9)
- August 2010 (22)
-
RSS Links
Blogroll
-
Meta
MySQL 4.1+ using old authentication
参考自这里
连接MySQL出现 mysqlnd cannot connect to MySQL 4.1+ using old authentication 错误
打开 /etc/my.cnf 会看到
默认使用 old_passwords 格式, 这是为了兼容 mysql 3.x, 如果没有这个需求, 那就用新的密码方式吧!
具体操作步骤如下:
1、编辑my.cnf注释掉一下行: old_passwords = 1 2、重启MySQL service mysqld restart /etc/inint.d/mysqld restart 3、检查是否有16位的密码 SELECT user, Length(`Password`) FROM `mysql`.`user`; 4、如果有,把对应的用户名密码用以下SQL更新 UPDATE mysql.user SET Password = PASSWORD('password') WHERE user = 'username'; 5、更新后要刷新 FLUSH PRIVILEGES;