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

发布时间:2016-03-02 13:08:34编辑:丝画阁阅读(692)

采用ps -ef |grep mysql  来查看mysql的安装目录,运行目录和日志目录。


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

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

2.查看mysql端口

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

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

关键字