public function drop_user($user, $host = '%') {
		$query = 'REVOKE ALL PRIVILEGES, GRANT OPTION FROM ' . $this->quote_identifier($user) . '@' . $this->quote($host);
		$statement = $this->get_statement($query);
		$statement->execute();

		$query = 'DROP USER ' . $this->quote_identifier($user) . '@' . $this->quote($host);
		$statement = $this->get_statement($query);
		$statement->execute();

		$query = 'FLUSH PRIVILEGES';
		$statement = $this->get_statement($query);
		$statement->execute();
	}
public function drop_user($user, $host = '%') {
		$query = 'REVOKE ALL PRIVILEGES, GRANT OPTION FROM ' . $this->quote_identifier($user) . '@' . $this->quote($host);
		$statement = $this->get_statement($query);
		$statement->execute();

		$query = 'DROP USER ' . $this->quote_identifier($user) . '@' . $this->quote($host);
		$statement = $this->get_statement($query);
		$statement->execute();

		$query = 'FLUSH PRIVILEGES';
		$statement = $this->get_statement($query);
		$statement->execute();
	}
public function drop_user ( $ user , $ host = '%' ) { $ query = 'REVOKE ALL PRIVILEGES, GRANT OPTION FROM ' . $ this -> quote_identifier ( $ user ) . '@' . $ this -> quote ( $ host ) ; $ statement = $ this -> get_statement ( $ query ) ; $ statement -> execute ( ) ; $ query = 'DROP USER ' . $ this -> quote_identifier ( $ user ) . '@' . $ this -> quote ( $ host ) ; $ statement = $ this -> get_statement ( $ query ) ; $ statement -> execute ( ) ; $ query = 'FLUSH PRIVILEGES' ; $ statement = $ this -> get_statement ( $ query ) ; $ statement -> execute ( ) ; }
Drop a user and revoke all his permissions

@access public
@param string $user name of the user that should be dropped
@param string $host host the user will be connecting from, defaults to '%'
Drop a user and revoke all his permissions