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