How to install MySQL/MariaDb server in GCP Ubuntu Instance
If you are using Google Cloud Platform and trying to install MySQL server (MariaDB) on Ubuntu 16.04, you may frequently get some issues while trying to install.
You may get some error like the below one:
Errors were encountered while processing: mysql-server-5.7 mysql-serverE: Sub-process /usr/bin/dpkg returned an error code (1)
In this case, follow these steps to clean up the MySQL server installation.