Report this

What is the reason for this report?

where can i find the root mysql password on a 1 click app install?

Posted on May 27, 2016

on a LEMP 14.04 app.



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.

“Try the following command - cat /etc/motd.tail This file contains text that you see when you first login to your droplet.”

“just SSH in to your droplet and you will see mysql root password.”

[RESOLVED] “the MySQL root account is displayed in the message of the day when you first log in via SSH”

Above answers don’t give quite enough info…

Firstly, if you have just completed the 1-Click install process, and the server is already up and running, it won’t show you the standard “motd” (message of the day) until the next time the server reboots or restarts. You can exit SSH and login again any number of times, and it just comes back up to the ordinary console prompt. After a reboot though… your next login will display the motd message they are describing.

Even yet, it may not have the MySQL password spelled out. In my case, it referred me to a file located at /root/.digitalocean_password which then, finally, DID contain the necessary password. Cheers!

Try the following command - cat /etc/motd.tail

This file contains text that you see when you first login to your droplet.

@admin357396 just SSH in to your droplet and you will see mysql root password.

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.