mysql8无法修改端口_mysql 8.0.19 安装 及 端口修改

1.创建my.ini文件

# For advice on how to change settings please see

# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html

# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the

# *** default location during install, and will be replaced if you

# *** upgrade to a newer version of MySQL.

[mysqld]

# 设置3309端口

port=3309#根据自己的需要修改端口

# 设置mysql的安装目录

basedir=L:\1_mysql\mysql-8.0.19-winx64 #根据自己的文件位置修改

# 设置mysql数据库的数据的存放目录

datadir=L:\1_mysql\mysql-8.0.19-winx64\Data #根据自己的文件位置修改

# 允许最大连接数

max_connections=200

# 允许连接失败的次数。这是为了防止有人从该主机试图攻击数据库系统

max_connect_errors=10

# 服务端使用的字符集默认为UTF8

character-set-server=utf8

# 创建新表时将使用的默认存储引擎

default-storage-engine=INNODB

# 默认使用“mysql_native_password”插件认证

default_authe

你可能感兴趣的:(mysql8无法修改端口)