如果datadir=后面的目录,里面没有Data,就无法启动成功。参考链接,第5步初始化data数据。
https://www.cnblogs.com/txwtech/p/14751496.html
[mysqld]
#skip-grant-tables
character-set-server=utf8
bind-address = 0.0.0.0
port = 3307
basedir=D:/mysql-5.7.24-winx64
datadir=D:/MySQL_Data_DFN_FT1/Data
max_connections=2000
default-storage-engine=INNODB
[mysql]
default-character-set=utf8
[mysql.server]
default-character-set=utf8
[client]
default-character-set=utf8