mirror of
https://github.com/easy-wi/developer.git
synced 2025-02-20 11:23:28 +08:00
99: delete still not working properly
https://github.com/easy-wi/developer/issues/99
This commit is contained in:
parent
e0d923f961
commit
11e580f8c0
@ -180,6 +180,9 @@ class ExternalSQL {
|
||||
$query = $this->remotesql->prepare("DROP USER ?@''");
|
||||
$query->execute(array($dbname));
|
||||
|
||||
$query = $this->remotesql->prepare("DROP USER ?@'localhost'");
|
||||
$query->execute(array($dbname));
|
||||
|
||||
$this->remotesql->exec("FLUSH PRIVILEGES; FLUSH HOSTS;");
|
||||
|
||||
} catch (PDOException $error) {
|
||||
@ -200,6 +203,9 @@ class ExternalSQL {
|
||||
$query = $this->remotesql->prepare("DROP USER ?@''");
|
||||
$query->execute(array($username));
|
||||
|
||||
$query = $this->remotesql->prepare("DROP USER ?@'localhost'");
|
||||
$query->execute(array($username));
|
||||
|
||||
$this->remotesql->exec("FLUSH PRIVILEGES; FLUSH HOSTS;");
|
||||
|
||||
} catch (PDOException $error) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user