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

Let's talk about the two functions of try catch in Javascript

The program is executed sequentially from top to ...

A brief summary of basic web page performance optimization rules

Some optimization rules for browser web pages Pag...

xtrabackup backup and restore MySQL database

Due to some of its own characteristics (locking t...

How to manually encapsulate paging components in Vue3.0

This article shares the specific code of the vue3...

The most comprehensive collection of front-end interview questions

HTML+CSS 1. Understanding and knowledge of WEB st...

vue-cli4.5.x quickly builds a project

1. Install vue-cli npm i @vue/cli -g 2. Create a ...

Detailed explanation of the calculation method of flex-grow and flex-shrink in flex layout

Flex(彈性布局) in CSS can flexibly control the layout...

Quickly learn MySQL basics

Table of contents Understanding SQL Understanding...

Implementation of React virtual list

Table of contents 1. Background 2. What is a virt...

Vue scroll down to load more data scroll case detailed explanation

vue-infinite-scroll Install npm install vue-infin...

What is the function and writing order of the a tag pseudo class

The role of the a tag pseudo-class: ":link&qu...