port 3306 mysql code example Example: port 3306 mysql mysql -u root mysql> SHOW GLOBAL VARIABLES LIKE 'PORT'; # Default port is 3306 for MySQL