mysql5.7 for windows 解壓縮版配置安裝

Download MySQL Community Server https://dev.mysql.com/downloads/mysql/mysql

1.mysql-5.7.20-winx64.zip解壓後,在根目錄建立my.inisql

[mysql]
default-character-set=utf8

[mysqld]
port=3306
basedir=E:\mysql5.7
datadir=E:\mysql5.7\data
max_connections=200
character-set-server=utf8
default-storage-engine=INNODB

2.管理員Cmd命令code

cd E:\mysql5.7\bin
mysqld -install
mysqld --initialize --user=mysql --console

生成root用戶和臨時密碼。server

3.修改root密碼ip

輸入mysql -u root -p,而後輸入臨時密碼。修改密碼:set password = password('新密碼');get

相關文章
相關標籤/搜索