Question

One-Click Install : LAMP 14.04 : What is the MySQL Credentials?

Posted June 6, 2014 7.8k views
When using the One-Click Installation of an application image, such as LAMP on Ubuntu 14.04, what in the world is the mysql root password???
2 comments
  • On the LAMP one click application, when access the droplet by SSH the MySQL root password will be displayed in the terminal. It’s part of the MOTD, or message of the day. To display the message again, run:
    cat /etc/motd.tail

  • cat /etc/motd.tail

    LIFESAVER… thanks for the tip! Who would’ve known!

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.

×
5 answers
Password is 'password' by default.

as SSH message says:

WELCOME TO DIGITALOCEAN'S [..]
-------------------

Please be sure to change your root MySQL password;
current MySQL password is "password".

You can change the MySQL password with the following command:

mysqladmin -u root -p'password' password newpassword
You may try

cat /root/.my.cnf
Usually, you should run mysql_secure_installation after installation is complete to set the root password (because there isn't one) and secure the installation.
On the LAMP one click application, when you login to the droplet the MySQL root password will be displayed in the terminal. It's part of the MOTD, or message of the day. To display the message again, run:
cat /etc/motd.tail
@alexandre: That's no longer true. As part of upgrading the LAMP app to be based on Ubuntu 14.04, now a random password is generated for each droplet when it is spun up.
Submit an Answer