-p is for when you have a password set, but you don't have one set yet.
password is used to set or change the password but it needs a parameter
following it, the new password.
You did install mysql from the mysql web site, not RH's mysql, didn't you?
----- Original Message -----
From: "Radu Adam" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 18, 2001 19:09
Subject: Problems again ...
> I posted a question yesterday ... I installed RedHat Linux 7.1 with MySQL
on it but it doesn't let me do anything. This is what happens:
>
> [root@lambda /root]# mysqladmin -u root password
> mysqladmin: connect to server at 'localhost' failed
> error: 'Access denied for user: 'root@localhost' (Using password: NO)'
>
> and if I try with a password (i don't know what password !!!) it does
this:
>
> [root@lambda /root]# mysqladmin -u root -p password 'somepass'
> Enter password:
> mysqladmin: connect to server at 'localhost' failed
> error: 'Access denied for user: 'root@localhost' (Using password: YES)'
>
> So ... how can I reset the root password?
> -------
> Mailuri? Gramada! La www.emoka.ro iti faci moka
> un cont de mail fara limita de trafic!
>
>
>
> ---------------------------------------------------------------------
> Before posting, please check:
> http://www.mysql.com/manual.php (the manual)
> http://lists.mysql.com/ (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
<[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php