1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-11-24 08:41:09 +03:00

change post-mysql install to output to a tmp file

This commit is contained in:
david hill
2016-02-03 14:42:18 -06:00
parent eb178df679
commit de52c9ceb9
2 changed files with 7 additions and 7 deletions

View File

@@ -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;
}