PDA

View Full Version : mysqladmin passwort


gomanza
13th September 2006, 21:32
Hi guys,

I have the follwing problem or courious thing on my server.
I was installing fedoracore 5 on my Server and during the ispconfig process (setting a mysql oasswrod) I got these messages:

command:
mysqladmin -u root password <mypassword>

Message:
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'

I already figured out that I already set a password. After that I was able to change the password with this command:
mysqladmin -u root -p<mypassw> password <mynewpassw>
So I know my password.

Here is the thing. I am also using Webmin for configurating my server and there I can log to the mysql database with my password.
But when I am typing in my terminal:
mysqladmin -u root password <mypassword>
I get the same Message as above.
Does anybody know what's going on here?

THX for your Help Gomanza

gomanza
13th September 2006, 21:59
By the way does somebody know how to change the openssl password I used on thats to easy
THX

gomanza
14th September 2006, 04:02
I reinstalled the mysqladmin shit and then I typed

mysqladmin -h localhost -u root -p password
the I got asked to type the password
cu

willebanks
16th September 2006, 15:34
Hi Gomanza,

Not sure if this will work but try just using this command at the command line:
mysql -u root password -h localhost -p<yourpassword>

this works for me I believe it will work for you!