当前位置:网站首页>mysql 8.0.29 winx64. Graphic tutorial of zip installation and configuration method

mysql 8.0.29 winx64. Graphic tutorial of zip installation and configuration method

2022-06-10 02:18:00 1024 Q

win11 install mysql8 Latest compressed package version , For your reference , The details are as follows

1、 download mysql

2、 decompression

3、 Initialize the database and install the startup service

Open as administrator CMD Command console
cd c:/dbs/mysql-8.0.29/bin Get into mysql8.0.29 Catalog
mysqld --initialize-insecure initialization , It will automatically be in c:/dbs/mysql-8.0.29/data Build directory
mysqld install Installation services , The service name is mysql
net start mysql Open database service

net stop mysql Shut down the database service
mysqld remove Uninstall service

If you want to view the service through the window , In operation, you can enter services.msc Open service window

4、 Log in to the server to test

C:\Users\webrx>cd \C:\>cd dbs\mysql-8.0.29C:\dbs\mysql-8.0.29>cd bin# Log in to this machine -hlocalhost -uroot -p Empty no password -P3306 Don't write C:\dbs\mysql-8.0.29\bin>mysql -urootWelcome to the MySQL monitor.  Commands end with ; or \g.Your MySQL connection id is 8Server version: 8.0.29 MySQL Community Server - GPLCopyright (c) 2000, 2022, Oracle and/or its affiliates.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql> select @@hostname,@@port,@@version,@@basedir,@@datadir,now();+------------+--------+-----------+----------------------+---------------------------+---------------------+| @@hostname | @@port | @@version | @@basedir            | @@datadir                 | now()               |+------------+--------+-----------+----------------------+---------------------------+---------------------+| wp         |   3306 | 8.0.29    | C:\dbs\mysql-8.0.29\ | C:\dbs\mysql-8.0.29\data\ | 2022-05-11 14:25:17 |+------------+--------+-----------+----------------------+---------------------------+---------------------+1 row in set (0.00 sec)mysql> show databases;+--------------------+| Database           |+--------------------+| information_schema || mysql              || performance_schema || sys                |+--------------------+4 rows in set (0.02 sec)mysql> select host,user,plugin from mysql.user;+-----------+------------------+-----------------------+| host      | user             | plugin                |+-----------+------------------+-----------------------+| localhost | mysql.infoschema | caching_sha2_password || localhost | mysql.session    | caching_sha2_password || localhost | mysql.sys        | caching_sha2_password || localhost | root             | caching_sha2_password |+-----------+------------------+-----------------------+4 rows in set (0.00 sec)mysql> create user admin identified with mysql_native_password by 'admin';Query OK, 0 rows affected (0.01 sec)mysql> grant all on *.* to admin;Query OK, 0 rows affected (0.00 sec)mysql> flush privileges;Query OK, 0 rows affected (0.00 sec)mysql> select host,user,plugin from mysql.user;+-----------+------------------+-----------------------+| host      | user             | plugin                |+-----------+------------------+-----------------------+| %         | admin            | mysql_native_password || localhost | mysql.infoschema | caching_sha2_password || localhost | mysql.session    | caching_sha2_password || localhost | mysql.sys        | caching_sha2_password || localhost | root             | caching_sha2_password |+-----------+------------------+-----------------------+5 rows in set (0.00 sec)

5、 Use sqlyog Connect mysql8.0.29

Be careful : Low version of the sqlyog(13.1.1 And the following ) Can't recognize mysql The new version (5.7-8) Encryption mechanism (caching_sha2_password)

You have to use admin user ( Steps in 4 Using the old encryption mechanism established in (mysql_native_password) Users of ) Sign in


原网站

版权声明
本文为[1024 Q]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/160/202206091504481325.html