Remove a server definition. This command deletes the connection details for a remote server used by the FEDERATED or SPIDER storage engines.
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 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 .
IF EXISTS:
This page is licensed: GPLv2, originally from
DROP SERVER [ IF EXISTS ] server_nameDROP 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)