How to change the default mysql/mariadb 3306 portKategorieDatenbankenPubliziert17.12.2016 Open the my.cnf fileAdd a [client-server] section if it doesn't existAnd then write in this section: port = XXXXXRestart server. Done.