1. Check the mysql installation path
Use the whereis command to find
Example:
root@ubuntu:/# whereis mysql mysql: /usr/bin/mysql /usr/bin/X11/mysql /usr/local/mysql
2 , Query the path of the running file
Use the which command to find. The Which command uses the PATH environment variable to find the executable file path, which is used to find the folder pointing to this command.
Example:
root@ubuntu:/# which mysql /usr/bin/mysql
Related article tutorial sharing:linux tutorial
The above is the detailed content of How to check where mysql is installed in Linux. For more information, please follow other related articles on the PHP Chinese website!