Skip to content

Commit 9864873

Browse files
committed
Bug#26446321 CONTRIBUTION: FIX INSTALL DATABASE BY USED MYSQLD --INITIALIZE
Since MySQL 5.7 mysql_install_db has been deprecated, mysqld --initialize is now preferred. Switch mysqld_multi.sh. Based on contribution from tigerb, bug#87080. Change is 5.7 specific, MySQL 8 was fixed by: WL#9071: Remove mysql_install_db and server --bootstrap option
1 parent d86b0a6 commit 9864873

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/mysqld_multi.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,8 @@ sub start_mysqlds()
340340
if (! -d $datadir."/mysql") {
341341
if (-w $datadir) {
342342
print "\n\nInstalling new database in $datadir\n\n";
343-
$install_cmd="@bindir@/mysql_install_db ";
343+
$install_cmd="@bindir@/mysqld ";
344+
$install_cmd.="--initialize ";
344345
$install_cmd.="--user=mysql ";
345346
$install_cmd.="--datadir=$datadir";
346347
system($install_cmd);

0 commit comments

Comments
 (0)