Skip to content

Commit a547b08

Browse files
committed
Added keep-my-cnf to mysql_install_db
1 parent c55c571 commit a547b08

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

packaging/rpm-sles/mysql.init

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
#! /bin/bash
22
#
3+
# Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
4+
#
5+
# This program is free software; you can redistribute it and/or modify
6+
# it under the terms of the GNU General Public License as published by
7+
# the Free Software Foundation; version 2 of the License.
8+
#
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU General Public License for more details.
13+
#
14+
# You should have received a copy of the GNU General Public License
15+
# along with this program; if not, write to the Free Software
16+
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17+
18+
319

420
# MySQL Database start/stop script
521

@@ -72,7 +88,7 @@ install_db () {
7288
[ -d "$datadir/mysql" ] && return 0
7389

7490
# Create initial db
75-
/usr/bin/mysql_install_db --datadir="$datadir" --rpm --user=mysql
91+
/usr/bin/mysql_install_db --datadir="$datadir" --rpm --user=mysql --keep-my-cnf
7692
return $?
7793
}
7894

0 commit comments

Comments
 (0)