[*] IN : the installer can now attempt to create the database for you
This commit is contained in:
@@ -46,6 +46,12 @@ class MySQLCore extends Db
|
||||
|
||||
return $this->link;
|
||||
}
|
||||
|
||||
public static function createDatabase($host, $user, $password, $dbname)
|
||||
{
|
||||
$link = mysql_connect($host, $user, $password);
|
||||
return mysql_query('CREATE DATABASE `'.bqSQL($dbname).'`');
|
||||
}
|
||||
|
||||
/**
|
||||
* @see DbCore::disconnect()
|
||||
|
||||
Reference in New Issue
Block a user