mysql.zip configuration

1.my.ini

[mysql]
# 设置mysql客户端默认字符集
default-character-set=utf8 
[mysqld]
#设置3306端口
port = 3306 
# 设置mysql的安装目录
basedir=D:\\software\\mysql-8.0.24-winx64
# 设置mysql数据库的数据的存放目录
datadir=data
# 允许最大连接数
max_connections=200
# 服务端使用的字符集默认为UTF8
character-set-server=utf8
# 创建新表时将使用的默认存储引擎
default-storage-engine=INNODB

Notice:

The 1 path of my.ini
needs to add back slash "\" for translation.
2.datadir=data 

2. Register windows service

1. Open cmd in administrator mode (otherwise it may prompt insufficient permissions), switch to the bin directory of mysq
2. Use >mysqld –install service name to register the windwos service
3. Display Service successfully installed, indicating that the service installation is successful

3. Start the mysql service

net start MySQL56

Guess you like

Origin blog.csdn.net/qq_39704803/article/details/118182009