Changing the port number is to modify the [mysqld] section in/etc/my.cnf.
Add or modify the following:
[mysqld]
......
bind-address=0.0.0.0:2 1
..... and then restart the mysqld service.
#? Service? mysqld? restart