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

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

登錄后下載:

2、下載完成后解壓:

3、在mysql要目錄下創(chuàng)建 my.ini 文件,如上圖,文件內容如下,basedir 和 datadir 修改為相應地址:
[mysql] # 設置mysql客戶端默認字符集 default-character-set=utf8 [mysqld] #設置3306端口 port = 3306 # 設置mysql的安裝目錄 basedir=D:/tools/ent/db/mysql-5.7.20-winx64 # 設置mysql數(shù)據(jù)庫的數(shù)據(jù)的存放目錄 datadir=D:/tools/ent/db/mysql-5.7.20-winx64/data # 允許最大連接數(shù) max_connections=200 # 服務端使用的字符集默認為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、啟動服務
D:\tools\ent\db\mysql-5.7.20-winx64\bin>net start mysql
7、停止服務
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>
完成!
以上就是本文的全部內容,希望對大家的學習有所幫助,也希望大家多多支持腳本之家。
相關文章
MySQL數(shù)據(jù)庫是如何實現(xiàn)XA規(guī)范的
這篇文章主要介紹了MySQL數(shù)據(jù)庫是如何實現(xiàn)XA規(guī)范的,幫助大家更好的理解和使用MySQL數(shù)據(jù)庫,感興趣的朋友可以了解下2021-01-01
MySQL 5.7 mysql command line client 使用命令詳解
這篇文章主要介紹了MySQL 5.7 mysql command line client 使用命令,需要的朋友可以參考下2017-06-06

