Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm just want to install lamp server + phpmyadmin normally in case of when setting up mysql i get this error:

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

I don't know what this is.
I don't know how to run php code in ubuntu because it's my first deal with linux.

share|improve this question
What command did you use? How are you installing? What do you want to achieve? You need to give us much more information for us to help you. –  Alvar Jan 7 '13 at 15:55
i'm just try more than one command and all of it didn't work –  amr atef Jan 7 '13 at 16:16
and my achieve is wright & running php code with frameworks & cms –  amr atef Jan 7 '13 at 16:17
@amratef Take the help of pastebin.com and give us complete log . –  Raja Jan 7 '13 at 16:21
so i want to clean all of command and start again –  amr atef Jan 7 '13 at 16:22

1 Answer 1

  1. Set a password for mysql

sudo dpkg-reconfigure mysql-server-5.x

2.Now open the terminal and type

mysql -uroot -p

give password and press enter

share|improve this answer

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.