Cant find default MySQL password

Posted December 27, 2017 5.9k views
MySQLApacheLAMP StackUbuntu 16.04

I just created a droplet with lamp preinstalled. Now i need my standard MySQL but i cant find it. The MOTD showed me that i can find the mysql password in the following dir: /root/.digitalocean_password
Unfortunately this directory doesnt exist. Can someone help me?
Thanks in advance.

1 comment

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.

Submit an Answer
1 answer

Hi @Luuk2014

Please try using:

nano /root/.digitalocean_password

This will allow you to open the file and fetch the password that was set up during deployment :-).