Home Database Mysql Tutorial mysql service不能启动解决_MySQL

mysql service不能启动解决_MySQL

Jun 01, 2016 pm 01:31 PM
mysql service windows

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
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What should I do if I can't delete a Windows system dll file? Tips for completely deleting stubborn dll files What should I do if I can't delete a Windows system dll file? Tips for completely deleting stubborn dll files Jun 12, 2024 pm 02:46 PM

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 Lossless Scaling on Steam Deck OLED runs games at up to 2x FPS Aug 26, 2024 am 10:07 AM

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? How to update the latest version of Bybit Exchange? Will there be any impact if it is not updated? Feb 21, 2025 pm 10:54 PM

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 deepseek web version entrance deepseek official website entrance Feb 19, 2025 pm 04:54 PM

deepseek web version entrance deepseek official website entrance

How to optimize MySQL query performance in PHP? How to optimize MySQL query performance in PHP? Jun 03, 2024 pm 08:11 PM

How to optimize MySQL query performance in PHP?

How to use MySQL backup and restore in PHP? How to use MySQL backup and restore in PHP? Jun 03, 2024 pm 12:19 PM

How to use MySQL backup and restore in PHP?

How to insert data into a MySQL table using PHP? How to insert data into a MySQL table using PHP? Jun 02, 2024 pm 02:26 PM

How to insert data into a MySQL table using PHP?

How to install deepseek How to install deepseek Feb 19, 2025 pm 05:48 PM

How to install deepseek

See all articles