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!
HELP!
I checked for the servers running and discovered that MySQL is not running,
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:ssh *:* LISTEN 1404/sshd
tcp 0 0 *:smtp *:* LISTEN 1865/master
tcp6 0 0 [::]:http [::]:* LISTEN 1562/apache2
tcp6 0 0 [::]:ssh [::]:* LISTEN 1404/sshd
tcp6 0 0 [::]:smtp [::]:* LISTEN 1865/master
tcp6 0 0 [::]:https [::]:* LISTEN 1562/apache2
so I tried to start the MySQL server again using the command,
sudo systemctl start mysql
but I CANNOT start the server!!! Met with the following error,
● mysql.service - MySQL Community Server
Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
Active: activating (start-post) (Result: exit-code) since Tue 2017-07-18 13:53:28 UTC; 24s ago
Process: 3192 ExecStart=/usr/sbin/mysqld (code=exited, status=2)
Process: 3184 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)
Main PID: 3192 (code=exited, status=2); : 3193 (mysql-systemd-s)
Tasks: 2
Memory: 376.0K
CPU: 682ms
CGroup: /system.slice/mysql.service
└─control
├─3193 /bin/bash /usr/share/mysql/mysql-systemd-start post
└─3257 sleep 1
Jul 18 13:53:28 preciousnco systemd[1]: Starting MySQL Community Server...
Jul 18 13:53:29 preciousnco systemd[1]: mysql.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Really appreciate your helps, I need to get the website running ASAP… THANKS IN ADVANCE!!!
This comment has been deleted
I tried all this steps and I still end up with the same Database Error
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost:domain 0.0.0.0:* LISTEN 568/systemd-resolve
tcp 0 0 0.0.0.0:ssh 0.0.0.0:* LISTEN 871/sshd
tcp 0 0 localhost:mysql 0.0.0.0:* LISTEN 8759/mysqld
tcp6 0 0 [::]:ssh [::]:* LISTEN 871/sshd
tcp6 0 0 [::]:https [::]:* LISTEN 3593/apache2
tcp6 0 0 [::]:http [::]:* LISTEN 3593/apache2
it happens to me several times. I never encountered this problem on other cloud.
To autostart mysql when it goes down add this to your crontab
*/5 * * * * service mysql status > /dev/null || service mysql start
It happens too often even I already upgrade server to the higher plan. Is there any tutorials to do autostart mysql? Thanks
Awesome! This was an easy to follow troubleshooter. It worked by checking MySQL being on/off.
There was no issue with it being overloaded. Any idea why it might turn off so randomly?
For those who are stuck at the password section for debugging. It took me too long to realize that some of the characters I was using for my password were the culprit to my database connection error.
Avoid using these characters in your password, and all should work well. " ’ $ , [ ] * ? { } ~ # % \ < > | ^ ;
Great article! I ran into an out of memory condition that caused the database error. A Power Cycle of the droplet fixed it.