mysql 5.7.20\5.7.21 免安裝版安裝配置教程
mysql 下載安裝配置 5.7.20 / 5.7.21,供大家參考,具體內(nèi)容如下
1、下載mysql,下載地址

選擇操作系統(tǒng)和版本,我是64位win10,點(diǎn)擊 Download 后會(huì)跳到Oracle登錄頁(yè)面要求登錄后才能下載:

登錄后下載:

2、下載完成后解壓:

3、在mysql要目錄下創(chuàng)建 my.ini 文件,如上圖,文件內(nèi)容如下,basedir 和 datadir 修改為相應(yīng)地址:
[mysql] # 設(shè)置mysql客戶(hù)端默認(rèn)字符集 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ù)庫(kù)的數(shù)據(jù)的存放目錄 datadir=D:/tools/ent/db/mysql-5.7.20-winx64/data # 允許最大連接數(shù) max_connections=200 # 服務(wù)端使用的字符集默認(rèn)為8比特編碼的latin1字符集 character-set-server=utf8 # 創(chuàng)建新表時(shí)將使用的默認(rèn)存儲(chǔ)引擎 default-storage-engine=INNODB
4、cmd進(jìn)入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、啟動(dòng)服務(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>
完成!
以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。
相關(guān)文章
php中如何將圖片儲(chǔ)存在數(shù)據(jù)庫(kù)里
php中如何將圖片儲(chǔ)存在數(shù)據(jù)庫(kù)里...2007-03-03
mysql 開(kāi)放外網(wǎng)訪(fǎng)問(wèn)權(quán)限的方法
今天小編就為大家分享一篇mysql 開(kāi)放外網(wǎng)訪(fǎng)問(wèn)權(quán)限的方法,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。一起跟隨小編過(guò)來(lái)看看吧2018-05-05
MySQL數(shù)據(jù)庫(kù)是如何實(shí)現(xiàn)XA規(guī)范的
這篇文章主要介紹了MySQL數(shù)據(jù)庫(kù)是如何實(shí)現(xiàn)XA規(guī)范的,幫助大家更好的理解和使用MySQL數(shù)據(jù)庫(kù),感興趣的朋友可以了解下2021-01-01
mysql5.7.18解壓版啟動(dòng)mysql服務(wù)
這篇文章主要為大家詳細(xì)介紹了mysql5.7.18解壓版啟動(dòng)mysql服務(wù)的相關(guān)資料,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下2017-05-05
MySQL 5.7 mysql command line client 使用命令詳解
這篇文章主要介紹了MySQL 5.7 mysql command line client 使用命令,需要的朋友可以參考下2017-06-06
在同一臺(tái)機(jī)器上運(yùn)行多個(gè) MySQL 服務(wù)
在同一臺(tái)機(jī)器上運(yùn)行多個(gè) MySQL 服務(wù)...2006-11-11

