Disclaimer: The materials used in this column are written by VIP students of Kaige Academy. Students have the right to remain anonymous and have the right to final interpretation of the article. Kaige Academy aims to promote VIP students to learn from each other based on public notes.
MySQL database installation:
Windows installation
Download addresswww.mysql.com
The download steps are as follows:
Installation steps, as shown below:
What should I do if the .net package is missing?
If you encounter the above situation during installation, go to its official website to download a plug-in https://www.microsoft.com
Normally installed, as shown below:
Finally set the password
After installation, set MySQL not to start with the system
First find the control panel, find services, find MySQL, as shown below:
Change it to manual, you will need to start it yourself in the future
You can also start in the dos of the operating system
net start mysql57
mysql directory:
bin executes the program, starts the server program mysqld and starts the mysql database
Docs
include
lib kernel
Share
data data folder, which stores the data we generate in the future, as well as the data files of the system
If you have the installed version, the data folder is also there
C:\ProgramData\MySQL\MySQL Server 5.7 directory
my-default.ini This file is a template file, you can modify it and rename it my.ini It is the configuration file of mysql
The configuration included are:
where is the database file
In which directory is the database program located?
What is the port of the database
What is the character set of the database
Other corresponding configuration
If you are installing the version of mysql my.ini file is not in your database directory, it is in the data directory of your system
C:\ProgramData\MySQL\MySQL Server 5.7