Home > Database > Mysql Tutorial > Example method of installing the decompressed version of mysql5.7.14

Example method of installing the decompressed version of mysql5.7.14

零下一度
Release: 2017-05-11 14:58:13
Original
1147 people have browsed it

There are two ways to install

MySQL, one is in msi format and the other is in zip format. This article mainly introduces the installation graphic tutorial of the decompressed version of mysql5.7.14. Friends who need it can refer to MySQL is divided into Community Edition (Community Server) and Enterprise Edition (Enterprise). Their differences are: The community version can be freely downloaded and is free, but the official does not provide technical support and is suitable for ordinary users; the enterprise version is paid 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, which will not be described in this article. After the zip package is decompressed, 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 Configure environment

variables

: My Computer->

Properties

->Advanced->Environment Variables->System Environment Variables->path Add the path to the bin folder in the installation directory to path, as shown below

3. After that we need to modify the

configuration of MySQL File

, find the my-default.ini file in the installation directory, modify the two quantities basedir and datadir in it, as shown below:

basedir = D:\MySQL\mysql5714
  datadir = D:\MySQL\mysql5714\data
Copy after login

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, you will be prompted.

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

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

If the service cannot be started as shown in the picture above, there will be no

errors Report

: Reason:

MySQL database

After upgrading to version 5.7, it is somewhat different from the previous version. There is no data folder. We all know that the MySQL database file is saved in data folder. Some people on the Internet said to copy the data folder of version 5.6. This is not reliable. I also tried it. I can indeed log in, but I cannot change the administrator password. Here is a standard solution.
After installing MySQL5.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
Copy after login

After executing the above command, MySQL will create a data folder and build a default database. The logged-in user name 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: You do not need a password to enter mysql for the first time, just press Enter to enter.

【Related recommendations】

1.

Free mysql online video tutorial

2.

MySQL latest manual tutorial

3.

Those things about database design

The above is the detailed content of Example method of installing the decompressed version of mysql5.7.14. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template