error with mysql when doing mysql -u root

Jan van Stekelenburg janvs at truedestiny.net
Sat Sep 20 07:26:53 PDT 2003


On Sat, Sep 20, 2003 at 08:55:30AM -0700, Shawn Guillemette wrote:
> After setting the mysql root user passwd I get this when trying to log in. 
> 
> # mysql -u root
> ERROR 1045: Access denied for user: 'root at localhost' (Using password: NO)

You forgot the -p option.
For more info: http://www.mysql.com/documentation/mysql/bychapter/manual_Tutorial.html#Connecting-disconnecting

Also reading man-pages never hurt. ;-)

Jan.


More information about the freebsd-questions mailing list