Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
If it occurs error because of broken MySQL package on Ubuntu 16.04. Just do this trick
# Purge all MySQL packages
sudo apt purge mysql*
sudo rm -rf /var/lib/mysql
sudo rm -rf /etc/mysql
# Reinstall MySQL
sudo apt install mysql-server mysql-client
This worked for me.
https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04
(use dd if=/dev/zero of=/swapfile bs=1M count=1024 if you have cheap plan, and don’t forget to purge and remove certain files as mentioned)
change mysqladmin -p -u root version to sudo mysqladmin -p -u root version to test the installation
sudo systemctl mysql start is the wrong command to manually start the service, the proper command is sudo systemctl start mysql
I haven’t had to mess with the swap file to get mysql to install, as a couple of others have commented. Must thank my lucky stars. :-)
Thanks for taking the time to explain the differences in initializing mysql_install_db between the 5.6 and 5.7 versions of mysql. I find this level of attention of detail in most D.O tutorials and is the reason why I respect them so much.
It’s also worth mentioning that many consider MariaDB a much better alternative to MySQL. Not sure why DO doesn’t have a tutorial for MariaDB and Ubuntu, but they do have one for MariaDB and CentOS. But anyway, the installation instructions and everything else is almost identical. I wrote a tutorial for both MySQL and MariaDB on Ubuntu on my website
After I run ‘sudo apt-get install mysql-server’ Got this feedback:
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package mysql-server
What can be wrong here?