mysql password changes in .digitalocean_password after droplet restart (Magento one click)

Hi guys, I followed this guide ( to install Magento 2 one click. The mysql password is stored in /root/.digitalocean_password after installation. But every time the droplet is restarted the password changes. So I have to change it in the applications, eg. /var/www/html/app/etc/env.php for magento database.

Does anyone know, how to prevent mysql password change?

Best regards, Vitali

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hey there - this should be resolved for any new users of this app, just tested out the most recent submission from the vendor. Thanks for bearing with us!

Hello, @vige1000

When the server is rebooted and you login again the Magento script is executed again and will change the password.

If you’ve finished the Magento installation and don’t want to have the install script running on your next login you can edit the .bashrc file and remove the last two lines from it:

chmod +x /opt/digitalocean/

then execute:

source ~/.bashrc

The next time you access the droplet, the install script will not be executed. However if you reboot the droplet the install script will be executed again and the two lines will be added back in the .bashrc file

Thanks for reporting this. We will have a look and see if we can optimize the process and prevent any possible issues.

Regards, Alex