MySQL service is missing the solution

Source: Internet
Author: User

Yesterday turned on the computer MySQL suddenly can't connect, go to the service to find, but can not find the MySQL service


Solve:
Version 5.0:
Start-run->cmd, go to the MySQL installation bin directory
D:\mysql\bin>mysqld-nt.exe-install
Service successfully installed.
This time refresh the list of services MySQL will appear, start on it, or you can directly in the CMD to do the following actions
D:\mysql\bin>net Start MySQL

The MySQL service has started successfully.

5.1 and subsequent versions:
D:\mysql\bin>mysqld.exe-install
Service successfully installed.

D:\mysql\bin>net Start MySQL

PS: The local computer cannot start the MySQL service error 1067: The process aborted unexpectedly

No matter what version of MySQL is installed, the MySQL service will be in the middle of the error when you start the service in the Admin tool. The content is: The local computer cannot start the MySQL service error 1067: The process aborted unexpectedly.

After many ways to ask, the solution is as follows

Find the My.ini file under the directory of the system (which later validates the Windows directory), edit the content (if not, create a new one), and include at least the two basic configurations of Basedir,datadir.

[Mysqld]

# set Basedir to installation path, e.g., c:/mysql

# Set the installation directory to MySQL

Basedir=d:/www/webserver/mysql

# set DataDir to location of data directory,

# e.g, c:/mysql/data or d:/mydata/data

# Data Directory set to MySQL

Datadir=d:/www/webserver/mysql/data

In addition, you have an idea

[Winmysqladmin]

Server=d:/www/webserver/mysql/bin/mysqld-nt.exe

User=root

Password=xxxxxxxx

#以上是设置WinMySQLadmin的配置

[Client]

User=root

Password=xxxxxxxx

hehe~:) Solved the

The contents of the My.ini file are as follows. I changed it myself, just fine, hey

[Mysqld]

# set Basedir to installation path, e.g., d:/mysql

# Set the installation directory to MySQL

Basedir=d:/mysql

# set DataDir to location of data directory,

# e.g, d:/mysql/data or d:/mysql/mydata/data

# Data Directory set to MySQL

Datadir=d:/mysql/data

MySQL service is missing the solution

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.