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