Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Sep 2003 16:27:55 +0200
From:      Jan van Stekelenburg <janvs@truedestiny.net>
To:        Shawn Guillemette <shawn@guillemette.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: error with mysql when doing mysql -u root
Message-ID:  <20030920142755.GA961@bacon.truedestiny.net>
In-Reply-To: <000801c37f8f$9e557f40$0401a8c0@hsdlaptop>
References:  <000801c37f8f$9e557f40$0401a8c0@hsdlaptop>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030920142755.GA961>