public function grant_all_privileges($database, $user, $host = '%') {
		$query = 'GRANT ALL PRIVILEGES ON ' . $this->quote_identifier($database) . '.* TO ' . $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 grant_all_privileges($database, $user, $host = '%') {
		$query = 'GRANT ALL PRIVILEGES ON ' . $this->quote_identifier($database) . '.* TO ' . $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 grant_all_privileges ( $ database , $ user , $ host = '%' ) { $ query = 'GRANT ALL PRIVILEGES ON ' . $ this -> quote_identifier ( $ database ) . '.* TO ' . $ this -> quote_identifier ( $ user ) . '@' . $ this -> quote ( $ host ) ; $ statement = $ this -> get_statement ( $ query ) ; $ statement -> execute ( ) ; $ query = 'FLUSH PRIVILEGES' ; $ statement = $ this -> get_statement ( $ query ) ; $ statement -> execute ( ) ; }
Grant all privileges on a database to a user

@access public
@param string $database name of the database that we are granting permissions on
@param string $user user that will get the permissions
@param string $host host the user will be connecting from, defaults to '%'
Grant all privileges on a database to a user