MySQL 5.7.18 installation tutorial and problem summary

MySQL 5.7.18 installation tutorial and problem summary

MySQL 5.7.18 installation and problem summary. I deployed a new MySQL server today and encountered several minor problems. I will record them here.

Step 1: Download the version you want to install from https://dev.mysql.com/downloads/mysql/. I ​​downloaded the Windows x64 version.

Step 2: Unzip to the installation directory./Path/

Step 3: Add environment variables, add ./Path/bin/ to the end of the environment variable Path, and end with ";"

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: Open the firewall port and add the corresponding inbound rules

Summary of the problem:

1. Problem: When executing the mysqld command, it prompts that msvcr120.dll and msvcp120.dll are missing.

Solution:

Please download the 32-bit versions of msvcr120.dll, msvcp120.dll, and ucrtbase.dll dll files to the bin directory of mysql. (Sweating…)

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

Solution: Two reasons:

1). The log directory corresponding to the configuration information is not created

2). The data storage directory is not empty

3. Question: When changing the root password of MySQL, the command update user set psssword=password("password") where user='root'; reports an error: ERROR 1054 (42S22): Unknown column 'password' in 'field list'

Solution:

password has been changed to "authentication_string"

4. Problem: When adding a user, the command "insert into mysql.user(host,user,authentication_string) values("%","username",password("password"));" is used, and an error message is displayed: 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 directive

The above is the MySQL 5.7.18 installation tutorial and problem summary introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!

You may also be interested in:
  • centos7.2 offline installation mysql5.7.18.tar.gz
  • MySQL 5.7.18 Green Edition Download and Installation Tutorial
  • MySQL 5.7.18 Installer installation download graphic tutorial
  • MySQL 5.7.18 MSI Installation Graphics Tutorial
  • MySQL 5.7.18 Archive compressed version installation tutorial
  • MySQL 5.7.18 winx64 installation and configuration method graphic tutorial
  • MySQL 5.7.18 free installation version configuration tutorial
  • How to install and modify the initial password of mysql5.7.18 under Centos7.3
  • MySQL 5.7.18 download and installation process detailed instructions
  • MySQL 5.7.18 zip version installation tutorial

<<:  Kali Linux Vmware virtual machine installation (illustration and text)

>>:  Vue+flask realizes video synthesis function (drag and drop upload)

Recommend

A brief discussion on the pitfalls of react useEffect closure

Problem code Look at a closure problem code cause...

Sample code for testing technology application based on Docker+Selenium Grid

Introduction to Selenium Grid Although some new f...

Method of building docker private warehouse based on Harbor

Table of contents 1. Introduction to Harbor 1. Ha...

Detailed explanation of Mysql function call optimization

Table of contents Function call optimization Func...

Summary of basic usage of CSS3 @media

//grammar: @media mediatype and | not | only (med...

Use of kubernetes YAML files

Table of contents 01 Introduction to YAML files Y...

How InnoDB implements serialization isolation level

Serialization implementation InnoDB implements se...

MySQL slow query operation example analysis [enable, test, confirm, etc.]

This article describes the MySQL slow query opera...

Pitfalls and solutions for upgrading MySQL 5.7.23 in CentOS 7

Preface Recently, I found a pitfall in upgrading ...

A brief discussion on Mysql specified order sorting query

Recently, I have been working on a large-screen d...

Linux Check the installation location of the software simple method

1. Check the software installation path: There is...

Ajax responseText parses json data case study

Solve the problem that the responseText returned ...

Express implements login verification

This article example shares the specific code for...

Introducing ECharts into the Vue project

Table of contents 1. Installation 2. Introduction...