mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
"egw_db::create_database gives no returnvalue, so we need to test the new db by connecting to it"
This commit is contained in:
parent
f0e0d84e55
commit
573e27ad2e
@ -154,8 +154,11 @@ class setup_cmd_database extends setup_cmd
|
||||
}
|
||||
catch (egw_exception_wrong_userinput $e) {
|
||||
// db or user not working --> connect as root and create it
|
||||
if (!$this->test_db->create_database($this->db_root,$this->db_root_pw,$this->db_charset))
|
||||
{
|
||||
try {
|
||||
$this->test_db->create_database($this->db_root,$this->db_root_pw,$this->db_charset);
|
||||
$this->connect();
|
||||
}
|
||||
catch(egw_exception_wrong_userinput $e) {
|
||||
// try connect as root to check if that's the problem
|
||||
$this->connect($this->db_root,$this->db_root_pw,$this->db_meta);
|
||||
// if not give general error
|
||||
|
Loading…
Reference in New Issue
Block a user