All pages
Powered by GitBook
1 of 1

Loading...

DROP SERVER

Remove a server definition. This command deletes the connection details for a remote server used by the FEDERATED or SPIDER storage engines.

Syntax

Description

Drops the server definition for the server named server_name. The corresponding row within the mysql.servers table will be deleted. This statement requires the privilege or, from , the privilege.

Dropping a server for a table does not affect any , , or tables that used this connection information when they were created.

DROP SERVER is not written to the , irrespective of the being used. From , replicates the , and DROP SERVER statements.

IF EXISTS

If the IF EXISTS clause is used, MariaDB will not return an error if the server does not exist. Unlike all other statements, DROP SERVER IF EXISTS does not issue a note if the server does not exist. See .

Examples

IF EXISTS:

See Also

This page is licensed: GPLv2, originally from

DROP SERVER [ IF EXISTS ] server_name
Connect Storage Engine
  • mysql.servers table

  • SUPER
    FEDERATED ADMIN
    FederatedX
    FEDERATED
    Connect
    Spider
    binary log
    binary log format
    CREATE SERVER
    ALTER SERVER
    MDEV-9400
    CREATE SERVER
    ALTER SERVER
    Spider Storage Engine
    FederatedX Storage Engine
    fill_help_tables.sql
    DROP SERVER s;
    DROP SERVER s;
    ERROR 1477 (HY000): The foreign server name you are trying to reference 
      does not exist. Data source error:  s
    
    DROP SERVER IF EXISTS s;
    Query OK, 0 rows affected (0.00 sec)
    Galera
    MariaDB 10.5.2
    MariaDB 10.1.13