Install MySQL on Windows 10

Confirm it is installedMySQL

(1) Press [win+r] shortcut key to open and run;

(2) input services.msc;
insert image description here

(3) Click [OK] and search for mysqlthe service . If there is no mysqlservice, it means that the machine is not installed mysql, otherwise, it means that the machine has installed mysqlthe service .

insert image description here

download

MySQL Official Site

MySQL download link

Selective installation through MYSQLofficial methods .InstallerMySQL Community Server

Open the download link https://dev.mysql.com/downloads/installer/ , the first one is the web installation package, after enabling it, you can download MySQL online for you; select the second one:

insert image description here

MySQL InstallerUnlike the standard , webthe installer package doesn't bundle any MySQLapplications, but it does download MySQLthe products .

Select the second .msiinstallation file, enter the download page, find this sentence in the jump page “No thanks, just start my download.”, click the text, and download:

insert image description here

Install

WindowsTwo MySQLinstallation :

  1. MySQL binary distributions (.msi installation files)
  2. Free installation version (.zip compressed file)

Downloaded installation package:
insert image description here

Next , install it according to the tutorial "Next step" all the way!

MySQL8.0It is installed by default C:\Program Files\MySQL\MySQL Server 8.0, as follows:

insert image description here

MySQLfirst use

start service

Use the command net start mysqlto start MySQL, as follows:

insert image description here

Out of service

Use the command in the terminal net stop mysqlto stop the service, as follows:

insert image description here

net start mysql,net stop mysqlThe third value of these two commands is the service name, because the service name is configured during installation mysql80, so the user name is actually used to start and stop the service: mysql80.

connect to MySQLserver

Run cmdTerminal , enter:

cd C:\Program Files\MySQL\MySQL Server 8.0\bin

Then, execute in this directory:

mysql -u root -p  

Then enter the password, as follows:

insert image description here

Now that you have entered MySQLthe command line, you can use MySQLthe command line with statements.

Exit the MySQLinteractive command line

Exit the MySQLinteractive command line: press the keyboard at the same time Ctrl + z, and then press Enter, as follows:

insert image description here

Guess you like

Origin blog.csdn.net/HH18700418030/article/details/130524061