Skip to content

Commit 21182cd

Browse files
committed
2018-03-01 补充 docker 安装 mysql
1 parent 35b0f26 commit 21182cd

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Mysql-Install-And-Settings.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,28 @@
1212

1313
>> The MySQL startup configuration is specified in the file /etc/mysql/my.cnf, and that file in turn includes any files found in the /etc/mysql/conf.d directory that end with .cnf.Settings in files in this directory will augment and/or override settings in /etc/mysql/my.cnf. If you want to use a customized MySQL configuration,you can create your alternative configuration file in a directory on the host machine and then mount that directory location as /etc/mysql/conf.d inside the mysql container.
1414
15+
- 容器中的 my.cnf 内容如下:
16+
17+
```
18+
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
19+
#
20+
# This program is free software; you can redistribute it and/or modify
21+
# it under the terms of the GNU General Public License as published by
22+
# the Free Software Foundation; version 2 of the License.
23+
#
24+
# This program is distributed in the hope that it will be useful,
25+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
26+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27+
# GNU General Public License for more details.
28+
#
29+
# You should have received a copy of the GNU General Public License
30+
# along with this program; if not, write to the Free Software
31+
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
32+
33+
!includedir /etc/mysql/conf.d/
34+
!includedir /etc/mysql/mysql.conf.d/
35+
```
36+
1537

1638
## MySQL 安装
1739

0 commit comments

Comments
 (0)