[-] Installer: check create table privileges

This commit is contained in:
Rémi Gaillard committed 2013-02-01 18:36:35 +01:00
1 parent 6a261cbc66
commit 5490f6063d
5 files changed
+74

No files matched your search

+6
View File
@@ -71,6 +71,12 @@ class InstallModelDatabase extends InstallAbstractModel
// Check if a table with same prefix already exists
if (!$clear && Db::hasTableWithSamePrefix($server, $login, $password, $database, $prefix))
$errors[] = $this->language->l('At least one table with same prefix was already found, please change your prefix or drop your database');
if (($create_error = Db::checkCreatePrivilege($server, $login, $password, $database, $prefix, $engine)) !== true)
{
$errors[] = $this->language->l(sprintf('Your database login don\'t have the privileges to create table on the database "%s". Ask your hosting provider:', $database));
if ($create_error != false)
$errors[] = $create_error;
}
break;
case 1: