Solution to MySQL service 1067 error: modify the mysql executable file path

Solution to MySQL service 1067 error: modify the mysql executable file path

Today I encountered the MySQL service 1067 error problem. I couldn't start MySQL even after setting it to use the system account. After authenticating and looking at the system configuration information, I found that the startup file, that is, the MySQL installation path, was the previous one (which also means that if I installed MySQL before and installed a new one without uninstalling it, an error would occur). So I plan to modify the MySQL executable file path and change it to the current one.

However, all the answers on Baidu were vague, so I decided to give up and reinstall the system, only to find that this problem could be solved.

Step 1: Stop MySQL service

Step 2: (Console: Run->regedit), find the service you want to change the path of according to the path HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\, or use the search function of the registry to find the path you want to modify

Run->regedit

Here you can see the mysql executable file path"

We can write the new path in, mine is "D:\SOFT_PHP_PACKAGE\mysql\bin\mysqld" –defaults-file="D:\SOFT_PHP_PACKAGE\mysql\my.ini" MySQL

The above is the solution to the Mysql service 1067 error introduced by the editor: modify the mysql executable file path. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!

You may also be interested in:
  • Example of how to use PHP to implement mysqli batch execution of multiple statements
  • Execute dynamic queries using non-dynamic SQL Server SQL statements
  • How to build and execute dynamic SQL statements in SQL SERVER
  • Mybatis plugin: Print SQL and its execution time implementation method
  • Mysql uses the kill command to solve the deadlock problem (kill a certain SQL statement being executed)
  • MySql batch insert optimization Sql execution efficiency example detailed explanation
  • Oracle View the Sql Statements with the Slowest Execution and the Most Query Times
  • Detailed analysis of SQL execution steps

<<:  How to Find the Execution Time of a Command or Process in Linux

>>:  Detailed explanation of Vue's hash jump principle

Recommend

Example code for configuring monitoring items and aggregated graphics in Zabbix

1. Install Zabbix Agent to monitor the local mach...

JavaScript clicks the button to generate a 4-digit random verification code

This article example shares the specific code of ...

Loading animation implemented with CSS3

Achieve results Implementation Code <h1>123...

Detailed View of Hidden Columns in MySQL

Table of contents 1. Primary key exists 2. No pri...

How to monitor Tomcat using LambdaProbe

Introduction: Lambda Probe (formerly known as Tom...

Detailed explanation of fetch network request encapsulation example

export default ({ url, method = 'GET', da...

Let's talk about bitwise operations in React source code in detail

Table of contents Preface Several common bit oper...

Specific use of stacking context in CSS

Preface Under the influence of some CSS interacti...

Vue implements tree table

This article example shares the specific code of ...

How to gracefully and safely shut down the MySQL process

Preface This article analyzes the process of shut...

HTML markup language - form

Click here to return to the 123WORDPRESS.COM HTML ...

How to quickly delete all tables in MySQL without deleting the database

This article uses an example to describe how to q...

Detailed explanation of the usage of two types of temporary tables in MySQL

External temporary tables A temporary table creat...

The past two years with user experience

<br />It has been no more than two years sin...

WeChat applet to save albums and pictures to albums

I am currently developing a video and tool app, s...