Hi,

Most likely your MySQL has no password for root in the default instalation.

Try:

# mysql -u root -p

and simly press enter when asked for the password.
Worked ?

Alright, so now it's time to give root a password:

# mysqladmin -u root password 'my_secret_password'

That's all that there is to it :)

Regards,
M�rio Gamito

Mysql Plusplus wrote:

> Hi,
> After I installed rpm packages on my system, I am unable to connect to the databse. I have installed in the following order
> 1)Server
> 2)Client
> 3)Devel
> 4)Shared Compat
>
> After starting the databse with:
> /etc/rc.d/init.d/mysql start
>
> I am unable to login as:
> /usr/bin/mysqladmin -u root password 'new-password'
>
> The following error occurs:
> /usr/bin/mysqladmin: connect to server at 'localhost' failed
> error: 'Access denied for user 'root'@'localhost' (using password: NO)'
>
> Please Help Me.
--
M�rio Gamito
Administra��o de sistemas e desenvolvimento
Netual - Multim�dia e Telecomunica��es, Lda.
Rua Jo�o Afonso, N�1
3800-198 Aveiro - Portugal
Tel. +351 234 371 431 / Fax. +351 234 371 438
E-mail: [EMAIL PROTECTED]
www.netual.pt


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]



Reply via email to