Home >Operation and Maintenance >Linux Operation and Maintenance >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!