当前位置:网站首页>MySQL mysql-8.0.19-winx64 installation and Navicat connection

MySQL mysql-8.0.19-winx64 installation and Navicat connection

2022-06-25 17:38:00 Green Lantern swordsman

It took a bit of effort , So write it down .
the front :mysql There is no desktop visualization , Tools are needed to show , such as :navicat.
One 、 install mysql
(1) Official website installation .
There is... On the official website 2 A version .zip and .msi. I took a look .msi Version not found 64 Bit , Then download it. .zip edition 64 It's all right .
After you click in , You don't have to register , Direct selection “No thanks, just start my download”
(2) After the download , decompression . Will file mysql-8.0.19-winx64 Put it where you usually install the software , My own address is “C:\install”.
(3) Configure environment variables . stay Path Add below C:\install\mysql-8.0.19-winx64\bin.
(4) To configure my.ini file .
stay C:\install\mysql-8.0.19-winx64\bin Create a new one in .txt file , Change it to my.ini, Copy the following onto , Note: modify the suffix to .ini.

[mysqld]
#  Set up 3306 port 
port=3306
#  Set up mysql Installation directory 
basedir=C:\install\mysql-8.0.19-winx64\bin
#  Set up mysql Database data storage directory 
datadir=C:\Program Files\mysql-8.0.19-winx64\data
#  Maximum connections allowed 
max_connections=200
#  Number of connection failures allowed . This is to prevent someone from trying to attack the database system from the host 
max_connect_errors=10
#  The character set used by the server defaults to UTF8
character-set-server=utf8
#  The default storage engine that will be used when creating a new table 
default-storage-engine=INNODB
#  By default “mysql_native_password” Plug in authentication 
default_authentication_plugin=mysql_native_password
[mysql]
#  Set up mysql Client default character set 
default-character-set=utf8
[client]
#  Set up mysql The default port when the client connects to the server 
port=3306
default-character-set=utf8

after , sign out linux Environmental Science , Reuse Login as Administrator powershell.
(5) initialization mysql And start the
Initialization command

mysqld --initialize --console

Be careful : The database password will be printed here , Remember the password , We'll use that later .
(6) install MySQL service :mysqld --install
(7) Start the server
sign out , Re enter linux Environmental Science . Enter the command

net start mysql

Other orders are :

 Stop service order :net stop mysql.
 uninstall  MySQL  The service command :sc delete MySQL/mysqld -remove

(8) Login database command

mysql -u root -p

This will let you enter your password . After inputting the password, you will enter MySQL The command mode of
(9) You must change the password after entering

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY ' New password ';

Be careful : Change Password , Pay attention to the end of the order ; Be sure to have , This is a mysql The grammar of
(10) Here we are , The installation and deployment is complete . Officials say the speed of the test MySQL8 Than 5 Twice as fast .
It can be used Command to view the default installed database :

show databases;
use mysql;
show tables;

Two 、navicat install
I started from csdn Download a with a registration machine . It's easy to use happy. The version is navicat120_premium
Installation steps :
(1) First choose 64/32 Bit version , then ( Administrator mode ) hold navicat120_premium Install it in the place you like .
(2) Be sure to use Administrator mode to run the registry PatchNavicat.exe.
3、 ... and 、navicat link mysql database
It's simple .
(1) Choose... In the upper right corner “ file ”–>“ New link ”–>“mysql”.
(2) Fill in Mysql Information about
【 Connection name : Name of the new database , Here is “ Local ”】;
【 host : Your own ip Address or enter directly ’localhost’】;
【 port : Generally default 3306】( View our my.ini);
【 user name : The default is ‘root’】;
【 password : Get into mysql Password set when command 】–>【 determine 】.
Then click the established connection to view the database contents .

原网站

版权声明
本文为[Green Lantern swordsman]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/176/202206251720254849.html