Programmers summary MySQL8.0 installation, configuration, and start the service login and configuration environment variable

table of Contents

MySQL 2.1 is the official website to download the installation file and configure MySQL

2.2 start mysql service:

Log in MySQL 2.3 database

About 2.4 Configuring the Path environment variable:

Chapter II: MySQL under Windows10 platform installation, configuration, startup and logon and configuration environment variable

 

I learned more systems content spot

MySQL 2.1 is the official website to download the installation file and configure MySQL
Tip: During installation, window will pop up whether to allow changes to the firewall hardware and other tips, click Yes.

360 security guards and other databases such as MySQL will file into a false Trojans, it recommended the installation process 360 is closed, leaving only window the firewall.

MySQL installation process fails, many are re-install MySQL as a result, when uninstalling MySQL, also prior to the installation directory should be deleted, usually in the program file folder. MySQL also should delete the DATA directory, the user may be in a folder, and then reinstall it.

Turning first to the https://dev.mysql.com/downloads/installer/

Their choice of platform 32, or 64 according to the Pick 32

Click the circle download

Click to login

Then enter the login screen, enter your user name and password (user name is usually the mailbox when registering an account). If you do not want to establish an account in this account (the process of establishing an account is very simple).

Before downloading also suggests that some of the information we need, fill in on the line

Submit form filled out on the line

Then enter the download page

Click Download Now, waiting to run after the download is complete

Wait a minute into the license agreement window

Check I accept the license terms and then click next

Now see the options are from top to bottom

Developer Default installed by default
only as a server Server only
full installation Full
Custom Custom
in this select Custom, next

Open the directory, click on the left selection Select MySQLserver 8,0,12-X64 and the like, to the middle of the right arrow points to the right side, next

Click Execute a little later on

As shown in Figure Click next

Click next to configure

Next enter the configuration window

The default configuration next

Choose to use stronger encryption for authentication click next (this is MySQL5.x not available)

After setting the server password next

Click next, please remember that our Windows services Name, where service name is MySQL80

Click Execute

Finish to complete the configuration

Enter the password, the default user is root

check the password is correct, next

Click execute, wait a minute click finish

Click next, click finish, complete

2.2 start mysql service:
have started MySQL services mainly in the following two ways:

The first:

In the search box enter "services, msc", then enter to confirm to find the MySQL service, double-click to open the Properties dialog box, "start" by clicking on "Stop" to change the service status.

The second:

In the search bar, enter "cmd", right command prompt option, choose to run under the management of identity, at the command prompt interface to enter "net start MySQL80" to start the MySQL service. Enter "net start mysql80" stop MySQL service.

The second method on a few tips:

1. invalid server name possible solutions:

Enter here "MySQL80" is the name of the service that we set when configuring MySQL, the picture above we can find, after you set up the server password next, will enter the Windows service windows, our default service name at the time is "MySQL80". In some reference books, directly let us enter "net start MySQL", copy the reader in the actual operation, the service name is invalid cases occur. If you forget the service name, you can win + R to open the window, enter services.msc where to find the mysql service name.

I learned more systems content spot

2. System error 5 and deny access to possible solutions:

Some students may open a shortcut "Win + r" command prompt interface, and then enter the start statement, which may occur when the tips, this is the result we did not run as an administrator. Then refer to the second start method above.

Log in MySQL 2.3 database
There are two ways to log database after starting the MySQL database service:

The first:

Find mysql folder in the program directory, and select Open MySql which 8.0 Command Line Client, enter the password.

The second:

Administrator, open window, type in the search box, enter "cmd" In the DOS window

cd C:Program FilesMySQLMySQL Server 8.0bin

(Note: If your MySQL files in another directory, enter the appropriate address)

After the enter button to confirm you can connect to the MySQL database by logging command, login command is:

mysql -h localhost -u root -p

Then enter a password will be prompted to enter password then enter the configure their own settings, that database after login enter confirmation, you can begin to operate the database. Figure:

Login MySQL database is generally command format is: mysql -h hostname -u root -p

It should explain the mysql login command, -h followed by host address of the server, because our client and server on the same machine, so enter localhost, behind -u is the user login name, where the default is the root. -p represents the back to enter password (password).

About 2.4 Configuring the Path environment variable:
presumably many readers will think, should enter cd C when logging in each time MySQL: Program FilesMySQLMySQL Server 8.0bin a little trouble, what better way to do it? This need to add the MySQL bin directory to the system environment variables to go.

First of all, "this computer" and select "Properties" on the desktop, right-click on the left side of the "Advanced System Settings", select "Advanced" tab, click on the "Environment Variables" in the "System Properties" dialog box

I learned more systems content spot

After opening the "Environment Variables" dialog box, select the "path" variable in the System variables list, click "Edit," and some shots are as follows:

In the "Edit Environment Variables" dialog box, click New, enter C: Program FilesMySQLMySQL Server 8.0bin, and finally click OK to complete the configuration environment variable.

Then log in using the MySQL database can be directly ordered

Published 89 original articles · won praise 63 · views 40000 +

Guess you like

Origin blog.csdn.net/aa541505/article/details/104072706