diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-11-26 12:30:07 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-11-26 12:30:07 +0100 |
commit | 3338eede3ccb2ead223a46fd537b7504bb4786e0 (patch) | |
tree | eb1645e8cceaae4fc578b301b52ae104944303d1 /lib/private/setup/mysql.php | |
parent | a2457b5fb9f1ef9fda82afc4cf7dc712d14488c9 (diff) | |
download | nextcloud-server-3338eede3ccb2ead223a46fd537b7504bb4786e0.tar.gz nextcloud-server-3338eede3ccb2ead223a46fd537b7504bb4786e0.zip |
Correctly namespace DatabaseSetupException
Diffstat (limited to 'lib/private/setup/mysql.php')
-rw-r--r-- | lib/private/setup/mysql.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/setup/mysql.php b/lib/private/setup/mysql.php index 5558a2d1e51..8f8d86d388c 100644 --- a/lib/private/setup/mysql.php +++ b/lib/private/setup/mysql.php @@ -9,7 +9,7 @@ class MySQL extends AbstractDatabase { //check if the database user has admin right $connection = @mysql_connect($this->dbhost, $this->dbuser, $this->dbpassword); if(!$connection) { - throw new \DatabaseSetupException($this->trans->t('MySQL/MariaDB username and/or password not valid'), + throw new \OC\DatabaseSetupException($this->trans->t('MySQL/MariaDB username and/or password not valid'), $this->trans->t('You need to enter either an existing account or the administrator.')); } //user already specified in config @@ -96,13 +96,13 @@ class MySQL extends AbstractDatabase { $query = "CREATE USER '$name'@'localhost' IDENTIFIED BY '$password'"; $result = mysql_query($query, $connection); if (!$result) { - throw new \DatabaseSetupException($this->trans->t("MySQL/MariaDB user '%s'@'localhost' exists already.", array($name)), + throw new \OC\DatabaseSetupException($this->trans->t("MySQL/MariaDB user '%s'@'localhost' exists already.", array($name)), $this->trans->t("Drop this user from MySQL/MariaDB", array($name))); } $query = "CREATE USER '$name'@'%' IDENTIFIED BY '$password'"; $result = mysql_query($query, $connection); if (!$result) { - throw new \DatabaseSetupException($this->trans->t("MySQL/MariaDB user '%s'@'%%' already exists", array($name)), + throw new \OC\DatabaseSetupException($this->trans->t("MySQL/MariaDB user '%s'@'%%' already exists", array($name)), $this->trans->t("Drop this user from MySQL/MariaDB.")); } } |