what is tcp port 3306 used for code example Example: What is the default port for MySQL server? The default port for MySQL server is 3306