How to solve the problem that MySQL can't start automatically

Source: Internet
Author: User

First, download the installation files

Find zip file at MySQL official website

Second, extract files, select location

It's best to put it on a certain disk in the MySQL folder, which is easier to find, where we extract the files to the D-Disk MySQL folder.

Third, let Windows know where your MySQL is

Create a My.ini file in the Windows Home directory of the system disk, which reads as follows:

[mysqld]basedir=d:/mysql/datadir=d:/mysql/data/

Then set the PATH environment variable. Add D:mysqlbin, so that the next time you enter the command mode, you can use MySQL directly, without first moving to the D-disk Mysql/bin directory.

Four, let Windows services to join MySQL

It means that when Windows starts, MySQL can start automatically.

In command line (CMD) mode, go to the Mysql/bin directory in the D disk, and then enter

Mysqld-nt-install

If it goes well, you will be prompted:

Server successfully installed.

Reboot the computer, install complete

After reboot, go to "Control Panel"-"service" to see if the MySQL service is displayed as "Start".

If you don't want MySQL to start the computer every time it starts directly, you can change the automatic to manual.

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.