mysql解壓縮式安裝的方法:首先新建my文本,以管理員身份執行cmd並進入到mysql的bin目錄;然後配置環境變數;接著設定root管理員密碼;最後完成後啟動mysql服務即可。
本教學操作環境:windows7系統、mysql8.0.22版,此方法適用於所有品牌電腦。
推薦(免費):Mysql影片教學
mysql解壓縮式安裝的方法:
1、選擇和自己作業系統匹配的版本zip包下載,不用登入直接下載,如圖
#2、指定一個本地資料夾存放下載的zip包,下載完成解壓縮裡面的文件列表如下
3、在解壓縮後的目錄新建一個my.ini文本,並用記事本編輯開啟複製以下內容並儲存。新data資料夾
[mysql]
; 設定mysql客戶端預設字元集
default-character-set=utf8
#[ mysqld]
;設定3306埠
port = 3306
; 設定mysql的安裝目錄
basedir=C:\mysql-5.7.19- winx64
; 設定mysql資料的存放目錄
datadir=C:\mysql-5.7.19-winx64\data
##;; 允許最大連線數 #max_connections=200; 服務端使用的字元集預設為8位元編碼的latin1字元集character-set-server=utf8#; 建立新表時將使用的預設儲存引擎default-storage-engine=INNODB
mysqld -- skip-grant-tables
C:\Users\Administrator>mysql Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 4 Server version: 5.7.19 MySQL Community Server (GPL) Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. 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> use mysql Database changed mysql> update user set authentication_string=password('123456') where user='root'; Query OK, 1 row affected, 1 warning (0.00 sec) Rows matched: 1 Changed: 1 Warnings: 1完成後啟動mysql服務
mysql -uroot -p123456指令登入測試成功,如下圖
以上是mysql如何進行解壓縮式安裝的詳細內容。更多資訊請關注PHP中文網其他相關文章!