最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

mysql?8.0.29?winx64.zip安裝配置方法圖文教程

 更新時(shí)間:2022年06月09日 11:00:46   作者:派太星965  
這篇文章主要為大家詳細(xì)介紹了mysql?8.0.29?winx64.zip安裝配置方法圖文教程,文中安裝步驟介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下

win11安裝mysql8最新壓縮包版,供大家參考,具體內(nèi)容如下

1、下載mysql

2、解壓

image-20220511141437289

3、初始化數(shù)據(jù)庫并安裝啟動(dòng)服務(wù)

以管理員身份打開CMD命令控制臺(tái)
cd c:/dbs/mysql-8.0.29/bin 進(jìn)入mysql8.0.29目錄
mysqld --initialize-insecure 初始化,會(huì)自動(dòng)的在c:/dbs/mysql-8.0.29/data 建立目錄
mysqld install 安裝服務(wù),服務(wù)名稱為mysql
net start mysql 開啟數(shù)據(jù)庫服務(wù)

net stop mysql 關(guān)閉數(shù)據(jù)庫服務(wù)
mysqld remove 卸載服務(wù)

如果要通過窗口查看服務(wù),在運(yùn)行中可以輸入services.msc 打開服務(wù)窗口

4、登錄服務(wù)器測(cè)試

C:\Users\webrx>cd \

C:\>cd dbs\mysql-8.0.29

C:\dbs\mysql-8.0.29>cd bin

#登錄本機(jī) -hlocalhost -uroot -p空沒有密碼 -P3306 可以不寫
C:\dbs\mysql-8.0.29\bin>mysql -uroot
Welcome to the MySQL monitor. ?Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 8.0.29 MySQL Community Server - GPL

Copyright (c) 2000, 2022, Oracle and/or its affiliates.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

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、使用sqlyog 連接mysql8.0.29

注意:低版本的sqlyog(13.1.1及以下)無法識(shí)別mysql新版本(5.7-8)的加密機(jī)制(caching_sha2_password)

必須使用admin用戶(在步驟4中建立的使用舊加密機(jī)制(mysql_native_password)的用戶)登錄

image-20220511143401417

image-20220511143516818

以上就是本文的全部內(nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。

相關(guān)文章

最新評(píng)論

洪雅县| 密山市| 门源| 红安县| 仁布县| 米易县| 阿坝县| 宝清县| 阳西县| 东乌| 博客| 新竹市| 璧山县| 河西区| 曲沃县| 吴川市| 称多县| 西峡县| 花莲市| 揭西县| 郸城县| 德清县| 盈江县| 保德县| 德昌县| 凌源市| 五河县| 浮山县| 建阳市| 上犹县| 页游| 永昌县| 建始县| 曲阳县| 建德市| 若羌县| 色达县| 龙井市| 永丰县| 松原市| 信阳市|