Question

What is the root password of the mysql server in a DigitalOcean Drupal install?

  • Posted on December 18, 2014
  • DraeckoAsked by Draecko

After a fresh Drupal droplet, what is the password of the MySQL admin? I tried mysql_ secure_ installation, but no passwords match (not the one for the shell, not the drupal password, not empty) so what is it? Or how can I reset it?

Show comments

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.

There seems to be no password needed mysql when you are logged in as root.

However, there is a mysql user “drupal” with a password that you can find in the Drupal default installation at /var/www/html/drupal/sites/default/settings.php around line 222 on Drupal 7.34

On the Drupal One-Click application the root MySql password can be found in the file /root/.my.cnf This should allow you to log in with the root user without having to enter a password with mysql -u root