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

Where is the CentOS MySQL installation directory?

angryTom
angryTomOriginal
2020-03-17 14:30:119564browse

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

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

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

Terminal display:

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

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!

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