PDA

View Full Version : Default MySQL password?



Josh1
December 5th, 2006, 12:09 PM
Hi everyone,
I have just installed Apache+MySQL+PHP using the below steps:
[code]
http://ubuntuguide.org/wiki/Ubuntu_Edgy#Apache_HTTP_Server
[code]
Using PHP5 and the default installation as it says. Now, when I go to http://localhost/phpmyadmin/ it asks for a username and password, usually for a fresh install of *AMP it's username "root" and password "" (blank, until you change it).

So my question is, what's the default user/password or how do I change the password?

Cheers,
Josh

daniminas
December 5th, 2006, 12:16 PM
mysqladmin -u root password yournew

Josh1
December 5th, 2006, 12:35 PM
mysqladmin -u root password yournew

josh@josh:~$ mysqladmin -u root password yournew
bash: mysqladmin: command not found

Ramses de Norre
December 5th, 2006, 12:39 PM
$ mysql -u root
set password for root@localhost = password('xxxxxxx');
flush privileges;
quit;
And fill in the password instead of the xxx.