[linux]查看mysql的配置文件及查看mysql端口

来源:互联网 发布:电梯安全员考试软件 编辑:程序博客网 时间:2024/06/05 20:59

1.linux下查看mysql的配置文件

[root@localhost ~]# vi /etc/my.cnf

2.查看mysql端口

[root@localhost ~]# vi /etc/my.cnf

在mysql的配置文件可以查看到端口port=3306

0 0