Windows cannot start MySQL service and reports error 1067 solution

Windows cannot start MySQL service and reports error 1067 solution

Suddenly when I logged into MySQL, it said that access was denied or I could not connect to the database. I went back to the service and opened wampmysqld, but found that "Windows cannot start the MySQL service error 1067". I couldn't start it no matter what. What should I do? Shrimp fry, let me share my experience with you!

Method 1:

1. Open the my.ini file, find the line default-storage-engine=InnoDB, and change it to default-storage-engine=MyISAM.
2. Delete ib_logfile0 and ib_logfile1 in the Data directory under the MySQL installation directory
3. Find the InfoDB directory specified when configuring the MySQL server and delete ibdata1

According to the my.ini file:
#*** INNODB Specific options *** innodb_data_home_dir="D:/"

4. Restart MySQL Service

Method 2:

When I reinstalled MySQL, it kept prompting "Unable to start MYSQL service, error 1067 The process terminated unexpectedly. Restarting and repairing the registry did not help. I checked online and changed basedir, but it did not work. I am using MySQL 5.8. After searching for a long time, I remembered that I had installed integrated environments such as wampserver and pc_webserver before. These software will write my.ini and php.ini to the C:WINDOWS directory and set them to read-only.

Solution:

Delete the my.ini file in the windows directory.
Reinstall mysql and the service starts successfully

Method 3:

1. Execute winmysqladmin to generate the my.ini file

2.mysqld -install starts the mysql service

3. net start mysql starts the mysql service and displays normal. When connecting through mysql -u root -p, it reports an error that the server is not started. Checking the server service, it is indeed that the mysql service is not started. Manual startup generates error 1067. I have reinstalled mysql several times, but the error still exists. Check that there are no errors in each configuration.
My system environment is win2003 mysql version 4.0.12. The solution is to copy the my.ini generated by winmysqladmin to c:windows and then start mysql and everything will be OK. I haven't tried this: In fact, you don't need to reconfigure. Just click mysql.exe in the /bin directory.
mysqld.exe
mysqld-nt.exe
winmysqladmin.exe
When the prompt box appears, just cancel it and then click winmysqladmin.exe and select start the service on the small icon in the lower right corner.

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • Solution to the mysql service not starting
  • Summary of several common problems when MySQL cannot be started
  • Summary of solutions for the problem that MySQL 5 cannot be started after installation (cannot start service)
  • Quick solution to MySQL service startup failure under CentOS 7
  • Solution to MySQL startup error 1053
  • How to solve the problem of MySQL not starting with error 1067
  • Common commands for mysql authorization, startup, and service startup
  • A practical record of an accident caused by MySQL startup

<<:  Answer the caching principle of keep-alive components from the perspective of source code

>>:  WeChat applet Amap multi-point route planning process example detailed explanation

Recommend

Docker's four network types principle examples

Four network types: None: Do not configure any ne...

Zabbix's psk encryption combined with zabbix_get value

Since Zabbix version 3.0, it has supported encryp...

Solution to the timeout problem when installing docker-compose with PIP

1: Installation command pip install docker-compos...

Centos 7 64-bit desktop version installation graphic tutorial

If you think the system is slow and want to chang...

Detailed explanation of binary and varbinary data types in MySQL

Preface BINARY and VARBINARY are somewhat similar...

Detailed explanation of desktop application using Vue3 and Electron

Table of contents Vue CLI builds a Vue project Vu...

How to use VIM editor in Linux

As a powerful editor with rich options, Vim is lo...

Solutions to the Problem of Creating XHTML and CSS Web Pages

The solutions to the problems encountered during x...

The first step in getting started with MySQL database is to create a table

Create a database Right click - Create a new data...

Vue-CLI multi-page directory packaging steps record

Page directory structure Note that you need to mo...

Detailed explanation of Nginx configuration file

The main configuration file of Nginx is nginx.con...