开发者

How to find the host where its has mysql client and path?

How to find the host where its has mysql client and path ?

I can do 'which mysql' . But path would be differ and some not configurated .

is there any other way to find in the host mysql client intsalled or not ?开发者_运维百科


You are saying you have more than one mysql client installed on the host computer, and you are trying to find the right one?

find / -type f -regex '.*/mysql' 2>/dev/null

This should show you all files named mysql, which is the name of the mysql client binary. You will have to figure out which one to use from there.


which mysql

gives you the path to the binary which would suggest it is installed.

Depending on what flavor of Linux you are running you can check to see if the client was installed with a package manager:

Debian/Ubuntu

dpkg -l | grep mysql

RedHat/Fedora

rpm -qa | grep mysql
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜