Heim  >  Artikel  >  Datenbank  >  mysql service不能启动解决_MySQL

mysql service不能启动解决_MySQL

WBOY
WBOYOriginal
2016-06-01 13:31:351263Durchsuche

bitsCN.com

mysql service不能启动解决

 

昨天在windows下安装mysql,安装完service不能启动。 

 

解决办法是: 

 

1. 去mysqld.exe所在的目录下运行“mysqld --console” 

 

这时候控制台上会提示具体的错误信息,其中包含下面两句: 

 

InnoDB: Error: log file /usr/local/mysql/data/ib_logfile0 is of different size 0 104857600 bytes 

InnoDB: than specified in the .cnf file 0 134217728 bytes! 

 

2. 打开mysql.ini文件把里面的innodb_log_file_size改成104857600 

注:默认原来的值可能是52M,直接把52M改成上面那个数字就可以,不用带单位。 

 

3. 再去启动服务,或者再次运行mysqld --console应该就可以正常启动。 

 

注:这可能只发生在以前安装过MySQL的情况。另外如果设置了默认引擎是MyISAM也可以正常启动,但是就不能创建INNODB的数据库引擎了。

 

bitsCN.com
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn