Windows MySQL free installation configuration (step over the pit) précis-writers

Source: Internet
Author: User
Tags mysql free

Download

Download from official website (https://dev.mysql.com/downloads/mysql/)

The free-to-install version here is relatively clean, but you need to configure a lot of things yourself.

Configuration

The first is the service that registers windows.

Open terminal, CD to MySQL directory bin with administrator privileges, execute command mysqld--initialize

This command initializes the database and the service, which is automatically created without the data directory (the MySQL root directory).

Step over the Pit one

Download the extract and locate the MySQL installation directory directly, run Mysql-u root

Tip Error 2003 (HY000): Can ' t connect to MySQL server on ' localhost ' (10061)

The 10061 error is that the network connection failed because the MySQL service did not start. Resolved by the configuration above.

Step over the pit two

I used to be the first command mysqld--install, the service was installed, but when the service started to error, errors are as follows:

The MySQL service on the local computer stops after it starts. Are some services automatically stopped when they are not being used by other services or programs?

After deleting the contents of the data directory, re-executed the mysqld--initialize to be installed.

Step over the pit three

After initialization is completed and then logged in with Mysql-u root, it is found that the password is still required, found that mysqld--initialize initialization will generate a random password, I found a. err file below the data directory, and found a line from the

2018-03-03t15:29:14.852669z 1 [Note] A temporary password is generated for [email protected]: FSL***HK

I use this password to finally log in successfully, the next step is to change the password, as follows to change the password to root.

Alter user ' root ' @ ' localhost ' identified by ' root ';

Windows MySQL free installation configuration (step over the pit) précis-writers

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.