Home >Operation and Maintenance >Linux Operation and Maintenance >How to check the installation location of mysql in linux

How to check the installation location of mysql in linux

王林
王林Original
2020-01-11 09:41:219488browse

How to check the installation location of mysql in linux

1. Check the file installation path

Since the software is installed in more than one place, let’s first check all the paths (addresses) of the file installation.

Here is mysql as an example. For example, I installed mysql, but I don’t know where the files are installed and in which folders. You can use the following command to view all file paths

(recommended related video tutorial: linux Video tutorial )

Enter in the terminal:

whereis mysql

and press Enter. If you have installed mysql, the address of the file installation will be displayed, such as my display (installation The address may be different)

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

2. Query the path of the running file (folder address)

If you only want to query the address of the running file of the file, just use the following command. That’s it (still taking mysql as an example):

which mysql

Terminal display:

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

Recommended related articles and tutorials: linux tutorial

The above is the detailed content of How to check the installation location of mysql 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