找出在Mac OS X上MySQL的安装位置 [英] Find out where MySQL is installed on Mac OS X

查看:363
本文介绍了找出在Mac OS X上MySQL的安装位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何确定Mac OS X 10.7.9上MySQL的安装位置?我已经安装了MAMP,所以我认为它与这次安装捆绑在一起了吗?

How do I find out where MySQL is installed on Mac OS X 10.7.9? I have MAMP installed so I presume that it is bundled with this install?

推荐答案

要检查MAMP的MySQL版本,请在终端中使用以下命令:

To check MySQL version of MAMP , use the following command in Terminal:

/Applications/MAMP/Library/bin/mysql --version

假设您已经启动了MAMP.

Assume you have started MAMP .

示例输出:

./mysql  Ver 14.14 Distrib 5.1.44, for apple-darwin8.11.1 (i386) using  EditLine wrapper

更新:此外,如果要查找mysql在系统中的安装位置,请使用以下命令:

UPDATE: Moreover, if you want to find where does mysql installed in system, use the following command:

type -a mysql

type -a等效于OS X bash shell中的tclsh内置命令where.如果找到MySQL,它将显示:

type -a is an equivalent of tclsh built-in command where in OS X bash shell. If MySQL is found, it will show :

mysql is /usr/bin/mysql

如果找不到,它将显示:

If not found, it will show:

-bash: type: mysql: not found

默认情况下,Mac OS X中未安装MySQL.

By default , MySQL is not installed in Mac OS X.

侧注:对于XAMPP,命令应为:

Sidenote: For XAMPP, the command should be:

/Applications/XAMPP/xamppfiles/bin/mysql --version

这篇关于找出在Mac OS X上MySQL的安装位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆