Set mysql host to % instead of localhost to allow connections to 127.0.0.1
Note, for updating an existing database, you should run the following: UPDATE mysql.user SET host='%'; FLUSH PRIVILEGES;
This commit is contained in:
@ -148,7 +148,7 @@ foreach($onions as $onion){
|
||||
//delete all log files
|
||||
exec("rm -f /var/log/nginx/*$onion[0].onion.log*");
|
||||
//delete user from database
|
||||
$db->exec("DROP USER '$onion[0].onion'@'localhost';");
|
||||
$db->exec("DROP USER '$onion[0].onion'@'%';");
|
||||
$db->exec("DROP DATABASE IF EXISTS `$onion[0]`;");
|
||||
$db->exec('FLUSH PRIVILEGES;');
|
||||
//delete user from user database
|
||||
|
Reference in New Issue
Block a user