Report this

What is the reason for this report?

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

Posted on July 1, 2017

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?



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!

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?

The developer cloud

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

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.