mysql 5.7.20\5.7.21 免安裝版安裝配置教程
mysql 下載安裝配置 5.7.20 / 5.7.21,供大家參考,具體內(nèi)容如下
1、下載mysql,下載地址
選擇操作系統(tǒng)和版本,我是64位win10,點擊 Download 后會跳到Oracle登錄頁面要求登錄后才能下載:
登錄后下載:
2、下載完成后解壓:
3、在mysql要目錄下創(chuàng)建 my.ini 文件,如上圖,文件內(nèi)容如下,basedir 和 datadir 修改為相應(yīng)地址:
[mysql] # 設(shè)置mysql客戶端默認字符集 default-character-set=utf8 [mysqld] #設(shè)置3306端口 port = 3306 # 設(shè)置mysql的安裝目錄 basedir=D:/tools/ent/db/mysql-5.7.20-winx64 # 設(shè)置mysql數(shù)據(jù)庫的數(shù)據(jù)的存放目錄 datadir=D:/tools/ent/db/mysql-5.7.20-winx64/data # 允許最大連接數(shù) max_connections=200 # 服務(wù)端使用的字符集默認為8比特編碼的latin1字符集 character-set-server=utf8 # 創(chuàng)建新表時將使用的默認存儲引擎 default-storage-engine=INNODB
4、cmd進入bin目錄下,執(zhí)行 mysqld --initialize-insecure
\mysql-5.7.20-winx64\bin>mysqld --initialize-insecure
5、然后執(zhí)行 mysqld -install
mysql-5.7.20-winx64\bin>mysqld -install
提示 Service successfully installed ,即安裝成功
6、啟動服務(wù)
D:\tools\ent\db\mysql-5.7.20-winx64\bin>net start mysql
7、停止服務(wù)
D:\tools\ent\db\mysql-5.7.20-winx64\bin>net stop mysql
8、登錄mysql
D:\tools\ent\db\mysql-5.7.20-winx64\bin>mysql -uroot -p Enter password: ****** Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 6 Server version: 5.7.20 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> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | api | | ibase4j | | jpress | | mysql | | performance_schema | | srmhome | | sys | | wordpress | +--------------------+ 9 rows in set (0.00 sec) mysql>
完成!
以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。
相關(guān)文章
mysql數(shù)據(jù)庫鎖的產(chǎn)生原因及解決辦法
這篇文章主要介紹了mysql數(shù)據(jù)庫鎖的產(chǎn)生原因及解決辦法,需要的朋友可以參考下2016-01-01mysql一對多關(guān)聯(lián)查詢分頁錯誤問題的解決方法
這篇文章主要介紹了mysql一對多關(guān)聯(lián)查詢分頁錯誤問題的解決方法,非常不錯,具有一定的參考借鑒價值,需要的朋友可以參考下2018-09-09SQL實現(xiàn)對數(shù)據(jù)庫檢索數(shù)據(jù)的直接轉(zhuǎn)換計算
這篇文章主要介紹了SQL實現(xiàn)對數(shù)據(jù)庫檢索數(shù)據(jù)的直接轉(zhuǎn)換計算,文章圍繞主題展開詳細的內(nèi)容介紹,具有一定的參考價值,需要的小伙伴可以參考一下2022-09-09mysql用戶創(chuàng)建與授權(quán)的簡單實例
MySQL等主流數(shù)據(jù)庫的最高權(quán)限一般是root用戶,有時我們需要提供數(shù)據(jù)庫的賬號和密碼以使用某些服務(wù),下面這篇文章主要給大家介紹了關(guān)于mysql用戶創(chuàng)建與授權(quán)的相關(guān)資料,需要的朋友可以參考下2022-03-03有效查詢MySQL表中重復(fù)數(shù)據(jù)的方法和技巧分享
在MySQL數(shù)據(jù)庫中,偶爾會遇到需要查找表中出現(xiàn)的重復(fù)數(shù)據(jù)的情況,這種情況下,我們可以通過編寫一些SQL查詢語句輕松地找到并處理這些重復(fù)行,本文將介紹一些常見的方法和技巧,幫助你有效地查詢MySQL表中的重復(fù)數(shù)據(jù),需要的朋友可以參考下2023-10-10