MySQL Installation and use

Source: Internet
Author: User
Tags mysql client

Installation tutorial for MySQL

Reference from rookie tutorial http://www.runoob.com/mysql/mysql-tutorial.html

Problem: No response to directory switching in cmd

On the cmd command line, use CD D:\ to not switch smoothly

Solution: Use cd/d d:\

It should be because I updated the minor differences caused by the new version of Win10.

Problem: Registration failed, error message can not find the Msvcp140.dll file?

Solution: Install vc++2015,

Solution from: 78980295;

Problem: 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?

Solution: Mysqld--initialize-insecure--user=mysql;

Note, to ensure that the data path is configured at the beginning, there is a data folder, and this folder must be empty;

Solution from: https://jingyan.baidu.com/article/0f5fb0991636376d8234ea7a.html

Problem: Using Navicat to log on to local server times wrong

Solution from: Questions about mysql8.0 configuration Navicat-Little rookie also want to fly article-know https://zhuanlan.zhihu.com/p/36087723

Successfully installed mysql8.0 server side, connection Navicat will prompt an error:

1251 Client does not the authentication protocol requested by server; Consider upgrading MySQL client

There are a number of similar errors that can be found online for 1251.

But basically all is suitable for MySQL 5.XX version, cannot run

Set password for root@localhost = old_password (' password ');

Or

UPDATE mysql.user SET Password = old_password (' password ') WHERE Host = ' localhost ' and user = ' root ';

Not even.

The correct solution here is:

(UPDATE mysql.user SET plugin = ' Mysql_native_password ';) at that time the SQL also ran and did not know if there was any use. You can experiment with the success of the SQL below alone

Alter user ' username ' @localhost identified with Mysql_native_password by ' your password ';

In the bar to find the essence of the reason:

Authentication method During the installation process, based on different encryption methods, so if you choose the first strong encryption, you will appear I described earlier phenomena;

The reload I chose the second authentication method, that is, to keep the old encryption method, this time can be connected directly.

At this point, you can use Navicat to operate the MySQL database normally.

MySQL Installation and use

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.