Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I tried to follow the steps mentioned in mysql charm:

$ juju ssh <unit> mysql -u root -p
enter root password:


But after installing mysql charm, /var/lib/juju/mysql.passwd file was not there. Kindly help locating mysql root password.

share|improve this question
up vote 4 down vote accepted

It appears that the mysql.passwd file was moved to /var/lib/mysql/mysql.passwd but the README was not updated. I've submitted a patch to the charm to update the README. However, you should be able to juju ssh mysql/0 and cat /var/lib/mysql/mysql.passwd to get the current MySQL root password.

share|improve this answer
Thank you Marco... – user207463 Oct 25 '13 at 16:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.