Using MySQL Commands

ronw at paradise.net.nz ronw at paradise.net.nz
Fri Feb 15 01:34:35 UTC 2008


Quoting Brad De Vries <devriesbj at gmail.com>:

> $ sudo mysqladmin -u root password newpassword
> mysqladmin: connect to server at 'localhost' failed
> error: 'Access denied for user 'root'@'localhost' (using password: NO)'
> 
> Anyone have any thoughts about what I might be doing wrong here?
> 
> TIA,
> Brad.

Won't you need -u root -p
The it should come up and ask for a password. If none set try pressing enter on
a blank password
Alternatively just enter 
mysql
at the mysql prompt enter
mysql> set password for root at localhost=password('password');
mysql> exit






-
Ron Wilson




More information about the kubuntu-users mailing list