添加本地启动mysql配置

This commit is contained in:
pengluan 2023-02-25 16:40:43 +08:00
parent 14039cb23a
commit fdf528642c

View File

@ -0,0 +1,18 @@
[mysqld]
skip-name-resolve
#log-bin=mysql-bin #添加这一行就ok
#binlog-format=ROW #选择row模式
#server_id=1 #配置mysql replaction需要定义不能和canal的slaveId重复
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
datadir = /var/lib/mysql
#log-error = /var/log/mysql/error.log
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
bind-address = 0.0.0.0
max_connections = 1000
innodb_buffer_pool_size=2G
explicit_defaults_for_timestamp = 1
character_set_server=utf8
init_connect='SET NAMES utf8'
skip-grant-tables