MySQL 5.7.16 ZIP package installation and configuration tutorial

MySQL 5.7.16 ZIP package installation and configuration tutorial

This article shares the installation and configuration tutorial of MySQL 5.7.16 ZIP package for your reference. The specific contents are as follows

1. Log in to the official website to download the free community version

1. Download URL

2. Click download

3. After downloading, create a new folder named MySQL (I chose to unzip to D:\Program Files\MySQL)

4. The administrator opens cmd and switches to the bin directory; (or configure MySQL environment variables) Enter: mysqld --initialize and press Enter. (Initialize MySQL)

5. After the execution is completed, we will see an additional directory under D:\Program Files\MySQL

6. In the cmd window, continue to enter: mysqld install and then return Service successfully installed . It means that the service is installed successfully .

7. Open the Run window and enter: services.msc , find MySQL and set it to start.

8. In the cmd window, continue to enter: mysql -u root -p and press Enter twice; it returns ERROR 1045(28000): Access denied for user 'root'@'localhost' (using password: NO). User root is denied access .

9. Open the data directory, open the .err file with Notepad, search for password to find the temporarily generated password, and copy it.

10. Continue to enter mysql -u root -p in cmd and press Enter (or press the up arrow), right click and paste the password you just copied.

11. Login successful.

12. When we enter the query statement, it appears: ERROR 1820(HY000): You must reset your password using ALTER USER statement before executing this statement. (You must reset your password ).

13. Enter: ALTER USER 'root'@'localhost' IDENTIFIED BY 'mima'; Return: Query OK, 0 rows affected The password is reset successfully, the password is: mima

14. Enter: exit and log in again. Enter the SQL statement: show databases ; the database table is displayed and the configuration is complete.

15. This is my first time writing a blog, so there are bound to be mistakes and shortcomings. I welcome your criticism and corrections, and we can learn from each other.

Wonderful topic sharing:

MySQL different versions installation tutorial

MySQL 5.7 installation tutorials for various versions

MySQL 5.6 installation tutorials for various versions

mysql8.0 installation tutorials for various versions

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • MySQL 5.7.16 installation and configuration method graphic tutorial
  • Detailed graphic tutorial for downloading, installing, configuring and using MySQL (win7x64 version 5.7.16)
  • Tutorial on installing the green version of mysql-5.7.16-winx64 on 64-bit win10 system
  • MySQL Installer Community 5.7.16 installation detailed tutorial
  • Linux uses rpm to install the latest mysql (5.7.16) steps and common problem solutions
  • MySQL 5.7.16 zip package installation and configuration method graphic tutorial
  • Detailed explanation of installing mysql 5.7.16 linux glibc2.5 x86 64 in CentOS 6.5 (recommended)
  • MySQL 5.7.16 winx64 installation and configuration method graphic tutorial
  • MySQL 5.7.16 free installation version graphic tutorial under Linux
  • MySQL 5.7.16 green version installation tutorial detailed explanation

<<:  Detailed explanation of Linux host name modification command

>>:  Example of Vue implementing fixed bottom component

Recommend

How to configure Nginx virtual host in CentOS 7.3

Experimental environment A minimally installed Ce...

Modify the default scroll bar style in the front-end project (summary)

I have written many projects that require changin...

vue.js downloads pictures according to picture url

Recently, when I was working on a front-end vue.j...

SQL implementation of LeetCode (183. Customers who have never placed an order)

[LeetCode] 183.Customers Who Never Order Suppose ...

Teach you how to use docker-maven-plugin to automate deployment

1. Introduction to docker-maven-plugin In our con...

JavaScript example code to determine whether a file exists

1. Business Scenario I have been doing developmen...

JavaScript selector functions querySelector and querySelectorAll

Table of contents 1. querySelector queries a sing...

Windows system mysql5.7.18 installation graphic tutorial

MySQL installation tutorial for Windows system do...

JavaScript canvas implements graphics and text with shadows

Use canvas to create graphics and text with shado...

Detailed analysis of replication in Mysql

1.MySQL replication concept It means transferring...