sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf
port 3306 =>3309 /*change the port number from 3306 to any of choice*/
service mysql restart
sudo mysql
select @@port /*to identify the new port running on*/
https://www.linkedin.com/pulse/how-change-mysql-default-port-3306-secure-piyush-diwakar/?trk=public_profile_article_view