出现这种错误:
security settings could not be applied to the database because the connection has failed with the following error. Error Nr. 1045 Access denied for user 'root'@'localhost' (using password: NO)
我是在原来安装的数据库位置安装新的数据库,新安装不认识原来的数据,导致连接错误,因此用以下命令在mysql命令行下运行下面的命令重新设置密码就好了!
SET PASSWORD FOR 'root@localhost' = OLD_PASSWORD('821024');
mysql错误:cannot create windows service for mysql.error:0
安装mysql时可能产生cannot create windows service for mysql.error:0错误,错误的原因多数由于重新安装mysql或者对mydql升级,使用MySQL Configuration Wizard而产生.
解决方法:
可以使用mysql以外的服务名,比如mysql11,等.但这不是最好的解决方法,我们可以使用windows的sc程序删除mysql服务.
C:>sc delete mysql
[SC] DeleteService SUCCESS
再重新使用MySQL Configuration Wizard,就不会有此错误了。