mysql 下載安裝配置 5.7.20 / 5.7.21,供大家參考,具體內(nèi)容如下
1、下載mysql,下載地址
選擇操作系統(tǒng)和版本,我是64位win10,點(diǎn)擊 Download 后會(huì)跳到Oracle登錄頁面要求登錄后才能下載:
登錄后下載:
2、下載完成后解壓:
3、在mysql要目錄下創(chuàng)建 my.ini 文件,如上圖,文件內(nèi)容如下,basedir 和 datadir 修改為相應(yīng)地址:
[mysql] # 設(shè)置mysql客戶端默認(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ù)庫的數(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>
完成!
以上就是本文的全部內(nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。
標(biāo)簽:濮陽 平頂山 安徽 四川 浙江 那曲 山南 安康
巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《mysql 5.7.20\5.7.21 免安裝版安裝配置教程》,本文關(guān)鍵詞 mysql,5.7.20,5.7.21,免,安裝,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。