mysql5.7.14 decompressed version installation graphic tutorial

mysql5.7.14 decompressed version installation graphic tutorial

MySQL is divided into Community Edition (Community Server) and Enterprise Edition (Enterprise). The difference between them is: the Community Edition can be downloaded freely and is free, but the official does not provide technical support, and is suitable for ordinary users; the Enterprise Edition is charged and cannot be downloaded online. It provides more functions and more complete technical support.

There are two ways to install MySQL, one is in msi format and the other is in zip format. The MySQL installation method in msi format is a fool-proof installation and will not be described in detail in this article. After the zip package is unzipped, MySQL can be used, but it needs to be configured before use.

1. Unzip the file to your own installation path. My installation path is: D:\MySQL:

2. After completing the above decompression, you need to configure the environment variables:

My Computer -> Properties -> Advanced -> Environment Variables -> System Environment Variables -> Path

Add the path of the bin folder under the installation directory to the path, as shown below

3. Then we need to modify the MySQL configuration file. Find the my-default.ini file in the installation directory and modify the two values ​​of basedir and datadir, as shown below:

basedir = D:\MySQL\mysql5714
  datadir = D:\MySQL\mysql5714\data

After modification, this file can be saved as my.ini

4. Then run cmd as an administrator to enter the command line window and enter the bin folder under the MySQL installation path:

Run the mysql-install command below:

If the installation is successful, a prompt will be displayed.

Note: If you do not run this as an administrator, an error will be reported.

5. After successful installation, run the net start mysql command:

If the service fails to start as shown above, and there is no error report:

Reason: After upgrading to version 5.7, the MySQL database is somewhat different from previous versions. There is no data folder. We all know that MySQL database files are saved in the data folder. Some people on the Internet say that you can copy the data folder of version 5.6. This statement is not reliable. I tried it and I can log in, but I can't change the administrator password. Here is a standard solution.

After installing MySQL 5.7, open the cmd command window and enter the bin directory in the MySQL installation directory, then enter the following command and press Enter:

mysqld --initialize-insecure --user=mysql 

After executing the above command, MySQL will create a data folder and a default database. The login username is root and the password is empty. The subsequent operations are the same as the previous version.

6. Repeat the instructions in 5 to open the service

7. Run mysql -u root -p to enter mysql

Note: No password is required when entering MySQL for the first time. Just press Enter to enter.

The above is the installation graphic tutorial of mysql5.7.14 decompressed version 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:
  • Detailed installation steps for MySQL 5.7.17 decompressed version (ZIP version)
  • Detailed installation steps of MySql 5.7.14 decompression version
  • Install mysql5.7 graphic tutorial under Window10 (decompressed version)
  • How to install and uninstall MySQL service under Windows (MySQL 5.6 zip decompression version installation tutorial)
  • MySQL 5.5.x zip direct decompression version installation method
  • MySQL 5.6.51 decompressed version (zip version) installation and configuration graphic method

<<:  Linux dual network card binding script method example

>>:  10 minutes to thoroughly understand WeChat applet single page application routing

Recommend

What are the new CSS :where and :is pseudo-class functions?

What are :is and :where? :is() and :where() are p...

Detailed tutorial on installing MySQL 8 in CentOS 7

Prepare Environmental information for this articl...

CSS animation property usage and example code (transition/transform/animation)

During development, a good user interface will al...

How to increase HTML page loading speed

(1) Reduce HTTP requests. (Merge resource files a...

Implementation steps for installing java environment in docker

This article is based on Linux centos8 to install...

How does MySQL ensure master-slave consistency?

Table of contents The basic principle of MySQL ma...

How to enable MySQL remote connection

For security reasons, MySql-Server only allows th...

Implementation of waterfall layout in uni-app project

GitHub address, you can star it if you like it Pl...

The combination and difference between ENTRYPOINT and CMD in dockerfile

In the previous article [Detailed explanation of ...

How to import CSS styles into HTML external style sheets

The link-in style is to put all the styles in one...

Regarding the Chinese garbled characters in a href parameter transfer

When href is needed to pass parameters, and the p...

Detailed explanation of the use of MySQL paradigm

1. Paradigm The English name of the paradigm is N...

Solution to Django's inability to access static resources with uwsgi+nginx proxy

When deploying uwsgi+nginx proxy Django, access u...

The actual process of encapsulating axios in the project

Table of contents Preface Benefits of axios encap...