1. 程式人生 > >MySQL免安裝版

MySQL免安裝版

roo amd cte tar IT div .com sub base

1.下載mysql-5.6.32-win32.zip

下載地址:https://dev.mysql.com/downloads/mysql/

2.解壓到D:\ProgramData\mysql-5.6.32-win32

3.復制my-default.ini為my.ini,內容如下:

[mysqld]
basedir = D:\ProgramData\mysql-5.6.32-win32
datadir = D:\ProgramData\mysql-5.6.32-win32\data
port = 3306
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES 
character_set_server
=utf8 [client] default-character-set=utf8

4.創建服務並啟動

cd D:\ProgramData\mysql-5.6.32-win32\bin
mysqld.exe -install
net start mysql

備註:

此時root密碼為空

MySQL免安裝版