Changeset 34783
- Timestamp:
- 08/06/09 12:24:01 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
platform/mysql/mysqld_jumpstart/trunk/mysqld_jumpstart
r34780 r34783 128 128 $opt_service_dir ||= "/service/mysqld.$opt_port"; 129 129 if ($opt_master{host}) { 130 File::Remove::remove(\1, "$opt_data_dir/mysql")131 or die "failed to clear directory:$opt_data_dir/mysql:$!";132 130 if ($opt_from_innobackupex) { 133 131 open my $fh, '<', "$opt_data_dir/xtrabackup_binlog_info" … … 202 200 } 203 201 204 { # run mysql_install_db 202 # run mysql_install_db 203 unless ($opt_master{host}) { 205 204 my $cmd = 206 205 "$opt_mysql_install_db --defaults-file='$opt_base_dir/etc/my.cnf'"; … … 222 221 close $fh 223 222 or die "mysql_install_db failed:\n$log"; 224 system( 225 '/bin/chown', 226 '-R', 227 do { 228 my @p = getpwnam($opt_user) 229 or die "specified user does not exist:$opt_user"; 230 "$p[2]:$p[3]"; 231 }, 232 "$opt_data_dir", 233 "$opt_base_dir/tmp", 234 ) == 0 235 or die "failed to chown subdirectories:$?"; 236 } 223 } 224 225 # chown 226 system( 227 '/bin/chown', 228 '-R', 229 do { 230 my @p = getpwnam($opt_user) 231 or die "specified user does not exist:$opt_user"; 232 "$p[2]:$p[3]"; 233 }, 234 "$opt_data_dir", 235 "$opt_base_dir/tmp", 236 ) == 0 237 or die "failed to chown subdirectories:$?"; 237 238 238 239 { # create service
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)