mysql5.7安裝記錄

mysql安裝記錄mysql

版本5.7 windows系統sql

1、缺乏my.ini文件windows

[mysql]
# 設置mysql客戶端默認字符集
default-character-set=utf8
[mysqld]
#設置3306端口
port = 3306
# 設置mysql的安裝目錄
basedir=D:\\Program Files\\MySQL\\MySQL Server 5.7
datadir=D:\\Program Files\\MySQL\\MySQL Server 5.7\\data
# 容許最大鏈接數
max_connections=200
# 服務端使用的字符集默認爲8比特編碼的latin1字符集
character-set-server=utf8
# 建立新表時將使用的默認存儲引擎
default-storage-engine=INNODB編碼

2、執行
D:\Program Files\MySQL\MySQL Server 5.7\bin>mysqld –initialize-insecure
進行初始化server

操做會在data目錄下產生一系列文件it

3、執行mysqld -install 安裝mysql開機自啓動io

4、net start mysql,啓動服務sed

 

5、更改密碼file

SET PASSWORD FOR 'root'@'localhost' = PASSWORD('123');密碼

執行mysqld -nt --init-file=c:\aa.txt

相關文章
相關標籤/搜索