Check if mySql is installed on server

Is there a way to determine if mySql has been installed on a Linux server?


Solution 1:

Assuming that you are looking for a mysql binary installed with a typical package, run the command:

mysql

or

mysql --version

If it comes back with a response, it is installed, if it says "command not found" then it is not installed.

Solution 2:

What version of linux?

Debian dpkg -l 'mysql*'