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

May 27, 2016 4.2k views
MySQL LEMP Ubuntu

on a LEMP 14.04 app.

4 Answers

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.

"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!

Have another answer? Share your knowledge.