1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-12-24 14:20:59 +03:00

added success complete msg for mysql scripts

This commit is contained in:
david hill
2016-02-04 10:23:03 -06:00
parent 45ac11b0f4
commit a3f391a235
2 changed files with 11 additions and 3 deletions

View File

@@ -234,10 +234,12 @@ void mysqlSetup()
{
Oam oam;
string cmd;
cmd = installDir + "/bin/post-mysqld-install --installdir=" + installDir + " > /tmp/post-mysqld-install.log";
cmd = installDir + "/bin/post-mysqld-install --installdir=" + installDir + " > /tmp/post-mysqld-install.log 2>&1";
int rtnCode = system(cmd.c_str());
if (WEXITSTATUS(rtnCode) != 0)
cout << "Error running post-mysqld-install, check /tmp/post-mysqld-install.log" << endl;
else
cout << "post-mysqld-install Successfully Completed" << endl;
int user;
bool rootUser = true;
@@ -313,8 +315,11 @@ void mysqlSetup()
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, /tmp/post-mysql-install.log" << endl;
else
if (WEXITSTATUS(rtnCode) == 1)
cout << "Error running post-mysql-install, /tmp/post-mysql-install.log" << endl;
else
cout << "post-mysql-install Successfully Completed" << endl;
return;
}

View File

@@ -3174,6 +3174,9 @@ int main(int argc, char *argv[])
if (WEXITSTATUS(rtnCode) != 0) {
cout << endl << "Error returned from post-mysql-install, check /tmp/post-mysql-install.log" << endl;
exit(1);
else
cout << endl << "post-mysql-install Successfully Completed" << endl;
}
}
}