Question

Why is MySQL installation failing on my freshly-created droplet?

I have been following the steps in these tutorials: https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-with-rvm-on-ubuntu-16-04 https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-16-04

I am at step 2 of the MySQL setup, where I am instructed to run sudo mysql_secure_installation. Unfortunately, I encounter the following error:

Process: 12721 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exi ted, status=1/FAILURE)

This is my first time deploying a Rails application and I don’t have much idea how to interpret/solve technical problems like this. I just want to deploy my app. Can anyone help?


Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @rjayhutchinson

Can you show the last 40 lines from the MySQL error log?

tail -40 /var/log/mysql/error.log

It might be crashing because of low RAM - how much do you have in your droplet?