Linux下查看Mysql数据库端口号的方法

mysql -u root -p

  

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

  

posted @ 2025-01-10 14:37  冥·紫月  阅读(24)  评论(0)    收藏  举报