Commit 6efd4edc authored by daidekun's avatar daidekun

增加 my.cnf

parent 57ee0526
......@@ -13,8 +13,9 @@ ENV AUTO_RUN_DIR /docker-entrypoint-initdb.d
WORKDIR $WORK_PATH
RUN mkdir -p sql_to_run
COPY ./sql_to_run/0-init_user_and_db.sql ./sql_to_run/
COPY my.cnf /etc/mysql/my.cnf
COPY ./sql_to_run/0-init_user_and_db.sql ./sql_to_run/
#把要执行的shell文件放到/docker-entrypoint-initdb.d/目录下,容器会自动执行这个shell
COPY ./init_db_data.sh $AUTO_RUN_DIR/
......
# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
# The MySQL Server configuration file.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
# * IMPORTANT: Additional settings that can override those from this file!
# The files must end with '.cnf', otherwise they'll be ignored.
#
!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mysql.conf.d/
max_connections = 5000
\ No newline at end of file
......@@ -79,7 +79,3 @@ flush privileges;
CREATE DATABASE merchant;
GRANT ALL PRIVILEGES ON *.* TO 'qa'@'%' IDENTIFIED BY 'qatest';
flush privileges;
-- 设置最大连接数
SET GLOBAL max_connections = 10000;
flush privileges;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment