How to install mysql5.7 in windows

How to install mysql5.7 in windows

First download the compressed version of mysql, the official download address is 123WORDPRESS.COM download address

1. Unzip mysql-5.7.11-winx64

2. Modify the command in the my.ini file under mysql in mysql-5.7.11-winx64:

basedir = E:\mysql //Installation directory, it is best to put it directly on the E drive

datadir = E:\mysql\mysqldb

innodb_buffer_pool_size = 2G //The default is 4G, which can be changed to 2G for practice

3. Open cmd as an administrator //The administrator mode in win10 must be opened by right-clicking on c:/windows/systems/cmd.

4. Enter the E drive cd E: ;cd mysql; cd bin

5. Enter mysqld.exe --defauits -file=E:\mysql\my.ini --user=mysql --initialize --console

6. Continue to enter mysqld --install in the bin directory //If successfully installed is displayed, the installation is successful.

7. Start mysql, that is, >net start mysql

8. Exit exit // Installation completed, the following is to change the password

9. Check whether the environment variables are configured

Add path path: %E:\mysql\bin; and MYSQL_PATH:E:\mysql path

10. Close mysql, that is, >net end mysql

11. Add skip-grant-tables to the my.ini file

12. Enter the bin directory of mysql and start mysql using cmd again, that is, >net start mysql

13. Connect to database: use mysql

14. Change password: update user set password=password("123456")where user='root' and host='localhost'

15. Flush privileges

16 quit

17. Delete skip-grant-tables in the my.ini file

Note: The order of some steps can be adjusted. You don’t have to follow the above steps completely, but they are all necessary!

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:
  • Installation and configuration of MySQL 5.6 under Windows with screenshots and detailed instructions
  • MySQL 5.7.3.0 installation and configuration graphic tutorial under Windows (installation version)
  • Tutorial on installing mysql5.7.17 on windows10
  • mysql5.7.13.zip installation tutorial (windows)
  • MySQL 5.7.17 installation and configuration method graphic tutorial (windows)
  • Steps to install MySQL 5.7.10 on Windows server 2008 r2

<<:  Detailed explanation of Vue identity authentication management and tenant management

>>:  How to mount a disk in Linux and set it to automatically mount on boot

Recommend

Understanding what Node.js is is so easy

Table of contents Official introduction to Node.j...

Vue axios interceptor commonly used repeated request cancellation

introduction The previous article introduced the ...

JS uses clip-path to implement dynamic area clipping function

background Today, I was browsing CodePen and saw ...

Ubuntu Basic Tutorial: apt-get Command

Preface The apt-get command is a package manageme...

CentOS 7.x docker uses overlay2 storage method

Edit /etc/docker/daemon.json and add the followin...

Element sample code to implement dynamic table

Table of contents 【Code background】 【Code Impleme...

Detailed explanation of Nginx version smooth upgrade solution

Table of contents background: Nginx smooth upgrad...

CSS multi-level menu implementation code

This is a pretty cool feature that makes web page...

How to install and configure Docker nginx

Download Nginx image in Docker docker pull nginx ...

Sample code for implementing image drawer effect with CSS3

As usual, let’s first post the picture effect: Th...

Specific use of MySQL binlog_ignore_db parameter

Preface: After studying the previous article, we ...

HTML table tag tutorial (7): background color attribute BGCOLOR

The background color of the table can be set thro...

Detailed explanation of JavaScript prototype and examples

Table of contents The relationship between the co...

Detailed explanation of Linx awk introductory tutorial

Awk is an application for processing text files, ...

How to display TIF format images in browser

The browser displays TIF format images Copy code T...