配置環境變量,最好就是在 path
中直接配置到 mysql/bin/
在 mysql 文件夾下配置 my.ini
其中的 skip-grant-tables
可以讓我們無需設置用戶名密碼直接使用 mysql ,我也圖個方便不設置
[mysqld]
#端口號
port = 3306
#自己的mysql路徑
basedir=D:\APP\mysql
#自己的mysql路徑
datadir=D:\APP\mysql
#最大連接數
max_connections=200
#編碼
character-set-server=utf8
default-storage-engine=INNODB
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
skip-grant-tables
[mysql]
#編碼
default-character-set=utf8
以管理員身份進入命令行,轉到 mysql/bin/
mysqld install
mysqld -initialize
開啓mysql服務 net start mysql
停止mysql服務 net stop mysql
感謝觀看 期待關注
關注我,帶你一起寫bug
warning :未經授權,不得轉載
有問題的小夥伴請在下方留言,喜歡就點個贊吧