MySQL installation and connection tools

MySQL installation and connection tools

1, download the MySQL archive, here I downloaded version is MySQL8.0
Here Insert Picture Description
2, unzip to the directory you want to install
Here Insert Picture Description
3, to find in the search cmd, and is an administrator run
Here Insert Picture Description
4, in the command window into you just unzipped directory to the bin folder, enter the mysqld -install installation services. Note the middle of a space.
Here Insert Picture Description
5, configure MySQL, enter mysqld --initialize-insecure, knock Enter twice, then your installation directory should be a data folder
Here Insert Picture Description
inside the folder there is a "computer name .err" file, use Notepad to open, you can see the inside information, you are prompted for the password blank
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description
6, the new installation directory in a "mysql.ini" file, which is written in
[mysqld]
default-Character-the SET utf8 =
[mysqld]
basedir = E: \ JavaLesson \ DataBase \ MySQL-8.0
datadir = E: \ JavaLesson \ DataBase \ MySQL-8.0 \ the Data
Port = 3306
Here Insert Picture Description
Here Insert Picture Description
7, start the MySQL service
in just the command window, type net start mysql, waiting for the service to start successfully
Here Insert Picture Description
8, enter the login command mysql - u root -p, initial login and press enter to go directly before the password has been set, enter the password then enter into
Here Insert Picture Description
9, after entering the password may be modified as abc123, enter the password = SET 'abc123';
-> User then enter the root @ localhost IDENTIFIED ALTER with mysql_native_password by 'abc123';
-> enter quit; exit MySQL
-> so it installed the
Here Insert Picture Description
Here Insert Picture Description
10, connected development tools
used to connect navicat12
-> open Navicat
-> click New connection
-> select MySQL
Here Insert Picture Description
11, enter the name and password to connect just set, click OK
Here Insert Picture Description
12, immediately to the left you can see the the database connection
Here Insert Picture Description

Released four original articles · won praise 3 · views 67

Guess you like

Origin blog.csdn.net/u014292402/article/details/105390759