MySQL 5.5.9 Installation Bug解决办法

MySQL 5.5.9 Installation Bug解决方法

MySQL 5.5.9在windows上安装到最后一步会出现一个错误:

When applying security settings the configuration process will fail!

注意: 这是一个BUG,

错误信息提示为:The security settings could not be applied to the database because the connection has failed with following error. Error Nr:1364Field ‘authentication_string’ doesn’t have a default value…

解决这BUG的方法如下:

1.忽略错误并关闭安装窗口。

2.在 开始菜单 运行 打开命令 cmd 。

3.敲入命令  mysql –uroot  登陆mysql。(如果在安装过程中已经设置root密码,就使用密码登陆)。

4.登陆后,如下敲入命令:

mysql> USE mysql;

Database changed

5.通过下面命令从User表中删除字段 “authentication_string” 不能为空的设置。

mysql>ALTER TABLE `mysql`.`user` CHANGE `authentication_string` `authentication_string` TEXT CHARACTER SET utf8 COLLATE utf8_bin NULL ;

6.退出mysql。关闭窗口,重新安装即可通过。

MySQL 5.5.9 Installation Bug解决办法

相关文章:

你感兴趣的文章:

标签云: