You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
change post-mysql install to output to a tmp file
This commit is contained in:
@ -234,10 +234,10 @@ void mysqlSetup()
|
||||
{
|
||||
Oam oam;
|
||||
string cmd;
|
||||
cmd = installDir + "/bin/post-mysqld-install --installdir=" + installDir;
|
||||
cmd = installDir + "/bin/post-mysqld-install --installdir=" + installDir + " > /tmp/post-mysqld-install.log";
|
||||
int rtnCode = system(cmd.c_str());
|
||||
if (WEXITSTATUS(rtnCode) != 0)
|
||||
cout << "Error running post-mysqld-install" << endl;
|
||||
cout << "Error running post-mysqld-install, check /tmp/post-mysqld-install.log" << endl;
|
||||
|
||||
int user;
|
||||
bool rootUser = true;
|
||||
@ -309,12 +309,12 @@ void mysqlSetup()
|
||||
}
|
||||
}
|
||||
|
||||
cmd = installDir + "/bin/post-mysql-install " + pwprompt + " --installdir=" + installDir;
|
||||
cmd = installDir + "/bin/post-mysql-install " + pwprompt + " --installdir=" + installDir + " > /tmp/post-mysql-install.log";;
|
||||
rtnCode = system(cmd.c_str());
|
||||
if (WEXITSTATUS(rtnCode) == 2)
|
||||
cout << "Error running post-mysql-install, password is needed. check " + HOME + "/.my.cnf " << endl;
|
||||
if (WEXITSTATUS(rtnCode) == 1)
|
||||
cout << "Error running post-mysql-install" << endl;
|
||||
cout << "Error running post-mysql-install, /tmp/post-mysql-install.log" << endl;
|
||||
|
||||
return;
|
||||
}
|
||||
|
@ -3168,11 +3168,11 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
//re-run post-mysqld-install with password
|
||||
cmd = installDir + "/bin/remote_command.sh " + remoteModuleIP + " " + password + " '" + installDir + "/bin/post-mysql-install " + pwprompt + "'";
|
||||
//re-run post-mysql-install with password
|
||||
cmd = installDir + "/bin/remote_command.sh " + remoteModuleIP + " " + password + " '" + installDir + "/bin/post-mysql-install " + pwprompt + "' < /tmp/post-mysql-install.log";
|
||||
rtnCode = system(cmd.c_str());
|
||||
if (WEXITSTATUS(rtnCode) != 0) {
|
||||
cout << endl << "Error returned from post-mysql-install" << endl;
|
||||
cout << endl << "Error returned from post-mysql-install, check /tmp/post-mysql-install.log" << endl;
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user