ALTER SERVER
ALTER SERVERserverOPTIONS ( { HOSThost, | DATABASEdatabase, | USERuser, | PASSWORDpassword, | SOCKETsocket, | OWNERcharacter, | PORTport} )
Use this SQL statement with the FEDERATED storage engine to
change the connection parameters of a server created with CREATE SERVER.
The values given are stored in the server table of
the mysql database. Options are given in a
comma-separated list. Option values must be specified as character or
numeric literals (UTF-8; maximum length of 64 characters). This
statement was introduced in version 5.1.15 of MySQL and requires
SUPER privileges:
ALTER SERVER server1 OPTIONS (USER 'test_user', PASSWORD 'testing123', PORT 3307);
This example changes the values of an existing server, the username, the password, and the port to be used for connecting to the server.