Installation method of MySQL 5.7.18 decompressed version under Win7x64

Installation method of MySQL 5.7.18 decompressed version under Win7x64

Related reading:

Solve the problem that the service cannot be started when installing the decompressed version of mysql 5.7.18 winx64 on Win7 x64

1. Download the installation package Baidu Cloud link

2. After decompression, put it in C:\Program Files\MySQL\mysql5.7.18

3. Create my.ini in the folder with the following content:

 [mysqld]
 #Password-free login skip-grant-tables
 bind-address = 0.0.0.0
 port = 3306
 basedir=C:/Program Files/mysql/mysql5.7.18
 datadir=C:/Program Files/MySQL/mysql5.7.18/data
 max_connections=200

4. Installation:

Be sure to go to the bin file directory, otherwise an error may occur during startup.

 C:\Program Files\MySQL\mysql5.7.18\bin>mysqld -install

uninstall:

C:\Program Files\MySQL\mysql5.7.18\bin>mysqld -remove

5. Since the decompressed mysql does not have a data folder, we need to initialize it:

Command line input cmd

cd C:\Program Files\MySQL\mysql5.7.18\bin
 C:\Program Files\MySQL\mysql5.7.18\bin>mysqld -initialize

The data folder is automatically generated after running.

If it is not initialized, the following error will occur when the service is started:

The MySQL service is starting.

The MySQL service cannot be started.

The service did not report any errors.

6. Configure environment variables

Add after Path:

 ;C:\Program Files\MySQL\mysql5.7.18\bin

7. Start mysql:

net start mysql close mysql:

net stop mysql

View all services:

services.msc

8. Change password:

I have newly installed MySQL 5.7. When I log in, it prompts that the password is wrong. I did not change the password during installation. Later, I changed the password by logging in without password. When I enter update mysql.user set password=password('root') where user='root', it prompts ERROR 1054 (42S22): Unknown column 'password' in 'field list'. It turns out that there is no password field in the MySQL database. The password field has been changed to authentication_string.

To change your password, follow these steps:

mysql -u root -p to enter mysql
 use mysql;
 update mysql.user set authentication_string=password('root') where user='root';

Delete skip-grant-tables in step 3 and restart mysql

The above is the installation method of the decompressed version of Mysql5.7.18 under Win7x64 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:
  • mysql 5.7.23 winx64 decompression version installation tutorial
  • Tutorial on installing and changing the root password of MySQL 5.7.20 decompressed version
  • Installation and uninstallation of MySQL 5.7 decompressed version and summary of common problems
  • Detailed steps for installing the decompressed version of MySQL 5.7.20 (two methods)
  • MySQL 5.7.20 common download, installation and configuration methods and simple operation skills (decompression version free installation)
  • The latest version of MySQL5.7.19 decompression version installation guide
  • MySQL 5.7.23 decompression version installation tutorial with pictures and text

<<:  How to run nginx in Docker and mount the local directory into the image

>>:  How to install and configure Docker nginx

Recommend

UDP connection object principle analysis and usage examples

I wrote a simple UDP server and client example be...

How to upgrade CentOS7 to CentOS8 (detailed steps)

This article uses a specific example to introduce...

Summary of SQL deduplication methods

When using SQL to extract data, we often encounte...

Detailed basic operations on data tables in MySQL database

Table of contents 1. View the tables in the curre...

Introduction to Docker Quick Deployment of SpringBoot Project

1. Install Docker First open the Linux environmen...

Implementation code of short video (douyin) watermark removal tool

Table of contents 1. Get the first link first 2. ...

Several principles for website product design reference

The following analysis is about product design pr...

What are the core modules of node.js

Table of contents Global Object Global objects an...

How to change the color of the entire row (tr) when the mouse stops in HTML

Use pure CSS to change the background color of a ...

mysql 5.7.11 winx64 initial password change

Download the compressed version of MySQL-5.7.11-w...

How to use negative margin technology to achieve average layout in CSS

We usually use float layout to solve the compatib...

React introduces antd-mobile+postcss to build mobile terminal

Install antd-mobile Global import npm install ant...

Docker deployment of Kafka and Spring Kafka implementation

This article mainly introduces the deployment of ...

Analyze the difference between computed and watch in Vue

Table of contents 1. Introduction to computed 1.1...