default port in mysql code example
Example 1: how to see what port mysql is running on
mysql -u root
mysql> SHOW GLOBAL VARIABLES LIKE 'PORT';
# Default port is 3306 for MySQL
Example 2: mysql default port number
Client - Server Connection Ports
Port 3306 is the default port for the classic MySQL protocol