diff --git a/install/class.create_db.php b/install/class.create_db.php index 2386d96a..07c3f78b 100644 --- a/install/class.create_db.php +++ b/install/class.create_db.php @@ -25,6 +25,7 @@ public static function import_file($filename) { } } //Connection::$db->commit(); + $Connection->db = null; return ''; } @@ -50,7 +51,7 @@ public static function create_database($root,$root_pass,$user,$pass,$db,$db_type // Dirty hack if ($host != 'localhost' || $host != '127.0.0.1') { $grantright = $_SERVER['SERVER_ADDR']; - } else $grantright = $host; + } else $grantright = 'localhost'; try { $dbh = new PDO($db_type.':host='.$host,$root,$root_pass); $dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);