Mac中查看mysql的安装路径

查看mysql的服务进程

ps -ef|grep mysql 
ps -ef|grep mysql 
   74    96     1   0 23 519  ??        55:54.03 
/usr/local/mysql/bin/mysqld --user=_mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --log-error=/usr/local/mysql/data/mysqld.local.err --pid-file=/usr/local/mysql/data/mysqld.local.pid --keyring-file-data=/usr/local/mysql/keyring/keyring --early-plugin-load=keyring_file=keyring_file.so --default_authentication_plugin=mysql_native_password
  501 24161 12336   0 10:47下午 ttys003    0:00.04 mysql -u root -p
  501 24309 24266   0 11:02下午 ttys004    0:00.01 grep mysql

Mac中直接在系统偏好设置中找到mysql服务,就可以在configuration中找到mysql的安装位置、数据位置、pid文件位置

Mac中查看mysql的安装路径_第1张图片

你可能感兴趣的:(MySQL)