CentOS查看mysql的安装路径
时间:2015-01-29 21:28来源:linux.it.net.cn 作者:IT
可通过以下命令查看mysql是否安装及其安装路径:
如下:
-
xx@ubuntu:~/work$ ps -ef|grep mysql
-
root 3867 2981 0 09:23 pts/11 00:00:00 /bin/sh /usr/local/mysql/bin/mysqld_safe --datadir=/usr/local/mysql/data --pid-file=/usr/local/mysql/data/ubuntu.pid
-
mysql 3959 3867 0 09:23 pts/11 00:00:57 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=/usr/local/mysql/data/ubuntu.err --pid-file=/usr/local/mysql/data/ubuntu.pid
-
xx 6317 6267 0 13:23 pts/17 00:00:00 grep --color=auto mysql
-
xx@ubuntu:~/work$
(责任编辑:IT) |
------分隔线----------------------------