Skip to content

Commit

Permalink
apply patch on #38
Browse files Browse the repository at this point in the history
  • Loading branch information
Songmu committed Apr 5, 2024
1 parent e8bde25 commit e775b90
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/Test/mysqld.pm
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,11 @@ sub setup {
or die "could not dircopy @{[$self->copy_data_from]} to " .
"@{[$self->my_cnf->{datadir}]}:$!";
if (!$self->_is_maria && ($self->_mysql_major_version || 0) >= 8) {
my $mysql_db_dir = $self->my_cnf->{datadir} . '/mysql';
if (! -d $mysql_db_dir) {
mkdir $mysql_db_dir or die "failed to mkdir $mysql_db_dir: $!";
for my $dir ('mysql', '#innodb_redo') {
my $abs_dir = $self->my_cnf->{datadir} . "/$dir";
if (! -d $abs_dir) {
mkdir $abs_dir or die "failed to mkdir $abs_dir: $!";
}
}
}
}
Expand Down

0 comments on commit e775b90

Please sign in to comment.