MySQL 5.7.18 version free installation configuration tutorial

MySQL 5.7.18 version free installation configuration tutorial

MySQL is divided into installation version and free installation version

The suffix of the installation version is msi, and the suffix of the free installation version is zip. You can directly unzip the free installation version and configure it for use.

The installed version will be written to the system registry and will prompt for configuration during the installation process.
Installation-free ones need to be configured manually and are not written to the system registry.

Download URL: http://dev.mysql.com/downloads

The steps for installing the free version are as follows:
1. The first step is to unzip the file and put it in a folder, such as: D:\shujuku\MySql5.7\mysql-5.7.18-winx64

2. Find my-default.ini, change it to my.ini, and add

basedir = D:\shujuku\MySql5.7\mysql-5.7.18-winx64
datadir = D:\shujuku\MySql5.7\mysql-5.7.18-winx64\data
bind-address = 0.0.0.0
port =3306

If there is no my-default.ini, create the mmy.ini file directly and add

[client]
port=3306
default-character-set=utf8
[mysqld]
port=3306
character_set_server=utf8
basedir=D:\shujuku\MySql5.7\mysql-5.7.18-winx64
#Unzip directory datadir=D:\shujuku\MySql5.7\mysql-5.7.18-winx64\data
bind-address = 0.0.0.0
#Unzip the data directory in the directory sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

3. Configure environment variables and add D:\shujuku\MySql5.7\mysql-5.7.18-winx64\bin after the system variable path

4. Then put the my.ini file in the bin directory (I put it in the root directory at first, but it kept giving an error when I created the data folder later)

5. Run cmd as an administrator and enter D:\shujuku\MySql5.7\mysql-5.7.18-winx64\bin

6. Execute the installation service: mysqld -install. If the installation is successful, you will see: Service successfully installed


7. Create a data directory and enter the command: mysqld –initialize-insecure (generate a root user without a password). After execution, there is a data file in the mysql root directory, which contains some folders and contents.

Tips: (In version 5.7, there is no data file that needs to be created. In version 5.6, there is a data folder, so it does not need to be created. If this command fails, you can copy the data folder from version 5.6 to version 5.7.)

8. Start the MySQL service: net start mysql


9. Create a password for the root user: mysqladmin –u root password This command is only useful when no password has been set.

10. If you want to delete MySQL, enter D:\shujuku\MySql5.7\mysql-5.7.18-winx64\bin in cmd. If the service is turned on, first shut down the MySQL service: netstop mysql, and then run: mysqld –remove .

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:
  • Detailed tutorial on customizing the installation path of MySQL 5.7.18 version (binary package installation)
  • mysql5.7.18.zip Installation-free version configuration tutorial (windows)
  • Installation tutorial of the latest stable version of MySQL 5.7.17 under Linux
  • Detailed explanation of how to compile and install PHP7.0.10+MySQL5.7.14+Nginx1.10.1 under CentOS 7.2 (mini version)
  • MySQL5.7.03 Replacement of higher version to MySQL 5.7.17 Installation process and solutions to problems found

<<:  JavaScript simulation calculator

>>:  Docker Getting Started Installation Tutorial (Beginner Edition)

Recommend

Detailed explanation of how to use several timers in CocosCreator

1. setTimeOut Print abc after 3 seconds. Execute ...

Various methods to implement the prompt function of text box in html

You can use the attribute in HTML5 <input="...

6 solutions for network failure in Docker container

6 solutions for network failure in Docker contain...

Personal opinion: Talk about design

<br />Choose the most practical one to talk ...

Explanation of Dockerfile instructions and basic structure

Using Dockerfile allows users to create custom im...

Example code for css flex layout with automatic line wrapping

To create a flex container, simply add a display:...

Docker implements re-tagging and deleting the image of the original tag

The docker image id is unique and can physically ...

In-depth explanation of the maximum value of int in MySQL

Introduction I will write about the problem I saw...

How to design and optimize MySQL indexes

Table of contents What is an index? Leftmost pref...

Examples of common Nginx misconfigurations

Table of contents Missing root location Off-By-Sl...

How to mount a new disk on a Linux cloud server

background A new server was added in the company,...

Summary of nginx configuration location method

location matching order 1. "=" prefix i...

MySQL 8.0.19 installation and configuration tutorial under Windows 10

I will be learning MySQL next semester. I didn...

How to add abort function to promise in JS

Table of contents Overview Promise Race Method Re...

Detailed explanation of the use of Linux time command

1. Command Introduction time is used to count the...