[*] IN : the installer can now attempt to create the database for you

This commit is contained in:
Damien Metzger committed 2013-07-03 11:04:34 +02:00
1 parent 92959311d9
commit bfa2f33c65
6 files changed
+380 -313

No files matched your search

+6
View File
@@ -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()