How to check the installation location of mysql in linux

王林
Release: 2020-01-11 09:41:21
Original
9361 people have browsed it

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

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
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 of the file, just use the following command. That’s it (still taking mysql as an example):

which mysql
Copy after login

Terminal display:

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

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!

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!