Check if mysql is installed on Ubuntu
There are many ways to check if mysql is installed but the next command gives us the most understandable information:
dpkg --get-selections | grep mysql
Output:
libmysqlclient21:amd64 install
mysql-apt-config install
mysql-common install
mysql-server-8.0 deinstall
mysql-workbench-community install