CentOS查看mysql的安装路径

分类:CentOS运维 阅读:39515 次

 可通过以下命令查看mysql是否安装及其安装路径:
 
  1. ps-ef|grepmysql
 如下:
 
  1. xx@ubuntu:~/work$ps-ef|grepmysql
  2. root38672981009:23pts/1100:00:00/bin/sh/usr/local/mysql/bin/mysqld_safe--datadir=/usr/local/mysql/data--pid-file=/usr/local/mysql/data/ubuntu.pid
  3. mysql39593867009:23pts/1100: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
  4. xx63176267013:23pts/1700:00:00grep--color=automysql
  5. xx@ubuntu:~/work$