[mysqld]
basedir = "C:\mysql57"
datadir = "C:\mysql57\data"
port = 3306
character-set-server=utf8
character-set-filesystem=utf8
[client]
port = 3306
default-character-set=utf8
#下面这条命令是用来对本地mysql进行初始化的,初始化之后可以进行安装或者卸载动作
#mysqld --initialize-insecure --user=mysql(用这条命令初始化之后,命令为空)
#mysqld -install
#mysqld -remove
#修改mysql密码
alter user 'root'@'localhost' identified by '123';
flush privileges;