Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qg-docker-entrypoints
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qg-docker-entrypoints
Commits
967952eb
Commit
967952eb
authored
Apr 19, 2018
by
kalvin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixbugs
parent
9493b50f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
13 deletions
+25
-13
my.cnf
dev/common/mysql/my.cnf
+25
-13
No files found.
dev/common/mysql/my.cnf
View file @
967952eb
...
@@ -4,20 +4,32 @@ socket = ${MYSQL_DEF_SCK}/mysqld.sock
...
@@ -4,20 +4,32 @@ socket = ${MYSQL_DEF_SCK}/mysqld.sock
[mysql]
[mysql]
socket = ${MYSQL_DEF_SCK}/mysqld.sock
socket = ${MYSQL_DEF_SCK}/mysqld.sock
# skip-host-cache
# skip-name-resolve
# datadir = ${MYSQL_DEF_DAT}
# user = ${MY_USER}
# port = 3306
# bind-address = 0.0.0.0
# socket = ${MYSQL_DEF_SCK}/mysqld.sock
# pid-file = ${MYSQL_DEF_PID}/mysqld.pid
# general_log_file = ${MYSQL_LOG_QUERY}
# slow_query_log_file = ${MYSQL_LOG_SLOW}
# log-error = ${MYSQL_LOG_ERROR}
# log-bin=/var/lib/mysql/mysql-bin
# server-id=1
[mysqld]
[mysqld]
skip-host-cache
pid-file = /var/run/mysqld/mysqld.pid
skip-name-resolve
socket = /var/run/mysqld/mysqld.sock
datadir = ${MYSQL_DEF_DAT}
datadir = /var/lib/mysql
user = ${MY_USER}
log-error = /var/log/mysql/error.log
port = 3306
symbolic-links=0
bind-address = 0.0.0.0
socket = ${MYSQL_DEF_SCK}/mysqld.sock
max_connections = 1000
pid-file = ${MYSQL_DEF_PID}/mysqld.pid
general_log_file = ${MYSQL_LOG_QUERY}
slow_query_log_file = ${MYSQL_LOG_SLOW}
log-error = ${MYSQL_LOG_ERROR}
log-bin=/var/lib/mysql/mysql-bin
log-bin=/var/lib/mysql/mysql-bin
server-id=1
binlog-format=ROW #选择row模式
server_id=1 #配置mysql replaction需要定义,不能和canal的slaveId重复
innodb_buffer_pool_size = 512M
innodb_buffer_pool_size = 512M
innodb_buffer_pool_instances = 1
innodb_buffer_pool_instances = 1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment