$ 0 0 Open the my.cnf file Add a [client-server] section if it doesn’t exist And then write in this section: port = XXXXX Restart server. Done.