mysqladmin -u root password mysql

"password" is used to change the password. "-p" is used to log on if a
password has already been set.  Don't know exactly what you want to do but
possibly you're looking for

mysqladmin -u root -p password your_new_password

If that doesn't work and you don't know the password, look up skip grants in
the manual.


----- Original Message -----
From: "chao cheng" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 17, 2001 3:40
Subject: access denied problem


Hi,

I just installed Mysql from source for Linux. When I type the following
command:

mysqladmin -u root password mysql

I got this error:

mysqladmin:connect to server@"localhost' failed
error:'access denied for user:'root@localhost'(using password:NO)'

Can some tell me how to correct this problem? Thanks!





---------------------------------------------------------------------
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

Reply via email to