Mysql 5.7.18 installation tutorial and problem summary, mysql5.7.18

Source: Internet
Author: User
Tags windows x64

Mysql 5.7.18 installation tutorial and problem summary, mysql5.7.18

Mysql 5.7.18 installation and problem summary: A New mysql is deployed today, and several minor problems are encountered. Record the problem.

Step 1: https://dev.mysql.com/downloads/mysql/ download the version to be installed, I'm under windows x64 version

Step 2: Decompress the package to the installation directory./Path/

Step 3: add the environment variable./Path/bin/to the end of the Environment Variable Path, ending ";"

Step 4: Configure my. ini, mainly to set the port, database path, log, buffer, and other configuration information

Step 5: Open the command line window and execute the initialization command

 mysqld –initialize-insecure –user=mysql; mysqld install; net start mysql; mysql; update user set authentication_string=password(“password”) where user='root'; grant usage on *.* to ‘username'@'%' identified by ‘password' with grant option; create database test_db; grant all privileges on test_db.* to ‘username'@'%' identifiedby ‘password'; flush privileges;

Step 6: Enable the firewall port and add inbound rules corresponding to the port

Problem summary:

1. problem: when executing the mysqld command, the system prompts that msvcr120.dll and msvcp120.dll are missing,

Solution:

Download the 32-bit versions of msvcr120.dll, msvcp120.dll, and ucrtbase. dll to the bin directory of mysql. (Khan Yi ...)

2. Problem: An error occurred while executing the mysqld-initialize-insecure-user = mysql command,

Solution: two reasons:

1). No log directory for the corresponding configuration information is created.

2). The data storage directory is not empty.

3. problem: when changing the mysql root password, use the update user set psssword = password ("password") where user = 'root'. The command reports an ERROR: ERROR 1054 (42S22 ): unknown column 'Password' in 'field list'

Solution:

Changed password to "authentication_string"

4. problem: when adding a user, use "insert into mysql. user (host, user, authentication_string) values ("%", "username", password ("password"); "command ERROR: ERROR 1364 (HY000 ): field 'ssl _ cipher 'doesn' t have a default value

Solution:

This is no longer applicable in 5.7. The correct usage is to use the grant usage command.

The above is a summary of mysql 5.7.18 installation tutorials and problems. I hope it will help you. If you have any questions, please leave a message and I will reply to you in a timely manner. Thank you very much for your support for the help House website!

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.