Home  >  Article  >  Operation and Maintenance  >  How to check where mysql is installed in Linux

How to check where mysql is installed in Linux

尚
Original
2019-12-31 13:44:238284browse

How to check where mysql is installed in Linux

1. Check the mysql installation path

Use the whereis command to find

Example:

root@ubuntu:/# whereis mysql
mysql: /usr/bin/mysql /usr/bin/X11/mysql /usr/local/mysql

2 , Query the path of the running file

Use the which command to find. The Which command uses the PATH environment variable to find the executable file path, which is used to find the folder pointing to this command.

Example:

root@ubuntu:/# which mysql
/usr/bin/mysql

Related article tutorial sharing:linux tutorial

The above is the detailed content of How to check where mysql is installed in Linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn