# Trouble with installation on Ubuntu precise 12.04

**URL:** <https://forums.percona.com/t/trouble-with-installation-on-ubuntu-precise-12-04/1837>\
**Category:** Other MySQL® Questions\
**Created:** [June 30, 2012, 11:46pm UTC](https://forums.percona.com/t/trouble-with-installation-on-ubuntu-precise-12-04/1837 "2012-06-30T23:46:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![windmills](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/windmills/32/879_2.png) [@windmills](https://forums.percona.com/u/windmills)\
**Post date:** [June 30, 2012, 11:46pm UTC](https://forums.percona.com/t/trouble-with-installation-on-ubuntu-precise-12-04/1837/1 "2012-06-30T23:46:08Z")

</div>

I setup /etc/my.cnf file. I add the precise percona repos, and do the installation through the command:

apt-get install percona-server-server-5.5

As it is installing, it prompts me to set “root” password. I do that and confirm. It then tells me it can’t set the root password, it failed. Eventually, I get mysql started, but I can’t login. I try with no password, and I try with the one I attempted. Either way I fail.

root# mysql -p

Am I missing something very obvious? I’ve tried apt-get remove, and install again. Nothing seems to work.

Specific error messages:

120701 5:01:54 [Warning] Access denied for user ‘root’@‘localhost’ (using password: YES)120701 5:01:58 [Warning] Access denied for user ‘root’@‘localhost’ (using password: NO)

---

<div class="post-metadata">

**Author:** ![gmouse](https://avatars.discourse-cdn.com/v4/letter/g/b9e5f3/32.png) [@gmouse](https://forums.percona.com/u/gmouse)\
**Post date:** [July 2, 2012, 6:38am UTC](https://forums.percona.com/t/trouble-with-installation-on-ubuntu-precise-12-04/1837/2 "2012-07-02T06:38:03Z")

</div>

[http://dev.mysql.com/doc/refman/5.5/en/resetting-permissions](http://dev.mysql.com/doc/refman/5.5/en/resetting-permissions) .html

---

<div class="post-metadata">

**Author:** ![martin.arrieta](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/martin.arrieta/32/16888_2.png) [@martin.arrieta](https://forums.percona.com/u/martin.arrieta)\
**Post date:** [July 5, 2012, 2:05pm UTC](https://forums.percona.com/t/trouble-with-installation-on-ubuntu-precise-12-04/1837/3 "2012-07-05T14:05:39Z")

</div>

Maybe you had an old mysql installation in your datadir. If this is the case, you have to use the password that you had in your old mysql installation.

Bye!
