Select Page

I need to check if mysql is installed on a ubuntu server. Is there a way to determine if mySql has been installed ?

Here is some suggestions:

dpkg --get-selections | grep mysql
dpkg -s mysql-server | grep Status
which mysqld

Type “mysql” in your terminal, see the result.

Search the “/usr/bin, /bin” directories for the binary.

Type “apt-cache show mysql” to see if it is installed

locate mysql