Home > Operation and Maintenance > CentOS > Where is the CentOS MySQL installation directory?

Where is the CentOS MySQL installation directory?

angryTom
Release: 2020-03-17 14:30:11
Original
9588 people have browsed it

Where is the CentOS MySQL installation directory?

Where is the CentOS MySQL installation directory?

You can check the MySQL installation directory on centos through the following methods:

1. Check the file installation path

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 learning: MySQL video tutorial)

whereis mysql
Copy after login

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@larry var]# whereis mysql
mysql: /usr/bin/mysql /usr/lib/mysql /usr/include/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, use the following directly The command is enough (still taking mysql as an example):

which mysql
Copy after login

Terminal display:

[root@larry var]# which mysql
/usr/bin/mysql
Copy after login

This article comes from the PHP Chinese website, CentOS usage tutorial column, more Please pay attention to this column for more related tutorials!

The above is the detailed content of Where is the CentOS MySQL installation directory?. 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