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

WBOY
Release: 2021-12-27 17:33:24
Original
22679 people have browsed it

In Linux, you can use the "whereis" command to view the installation location of mysql. This command is used to find files that meet the conditions in a specific directory. You only need to enter "whereis mysql" in the terminal.

How to check the installation location of mysql in linux

#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

How to check the mysql installation location in Linux

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

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

whereis mysql
Copy after login

Enter, if you have installed mysql, the address of the file installation will be displayed, such as my display (the installation address may be different)

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 (folder address)

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

which mysql
Copy after login

Terminal display:

root@ubuntu:/# which mysql
/usr/bin/mysql
Copy after login

Related recommendations: "Linux Video 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!

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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template