请问如何查看mysql 的端口号?

mysql> show variables like 'port';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| port          | 3306  |
+---------------+-------+
1 row in set (0.00 sec)

mysql>
原文地址:https://www.cnblogs.com/wangkongming/p/4450044.html