Resolving the MySQL service failed to boot system 1058 error occurred

Source: Internet
Author: User
Tags ini mysql

Phenomenon: MySQL service failed to start, system 1058 error occurred

My MySQL was originally installed, then the service was banned, and then started with Mysqld-nt standalone, now I want to restart the service, but can not start.

Workaround:

1, Operation

D:\mysql\bin>mysqld-nt -remove
Service successfully removed.
D:\mysql\bin>mysqld-nt --install
Service successfully installed.
D:\mysql\bin>net start mysql

The MySQL service is starting.

The MySQL service has started successfully.

2, check My.ini or my.cnf is normal?

Try changing the%systemroot%my.ini to this.

[mysqld]
basedir=D:/mysql
datadir=D:/mysql/data
default-character-set= gbk
[WinMySQLadmin]
Server=D:/mysql/bin/mysqld-nt.exe

3. Copy the My.ini and MY.CNF to the system disk Xx:\windows\system32, and note that some of the paths in the configuration environment

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.