How to check where mysql is installed in Linux

Release: 2019-12-31 13:44:23
Original
8182 people have browsed it

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
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!