Changing the Built-in MySQL Port Edit the my.cnf file to change the built-in MySQL port. Open /opt/aspera/shares/etc/my.cnf In the [mysqld] section, change the value for port. For example, to change to port 12345, add the following line in my.cnf: [mysqld] port = 12345