mysql service不能启动解决_MySQL
Jun 01, 2016 pm 01:31 PMbitsCN.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

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

What should I do if I can't delete a Windows system dll file? Tips for completely deleting stubborn dll files

Lossless Scaling on Steam Deck OLED runs games at up to 2x FPS

How to update the latest version of Bybit Exchange? Will there be any impact if it is not updated?

deepseek web version entrance deepseek official website entrance

How to optimize MySQL query performance in PHP?

How to use MySQL backup and restore in PHP?

How to insert data into a MySQL table using PHP?
