MySQL Forums
Forum List  »  Newbie

Re: MySQL Error Number 1045 Access denied
Posted by: Rob Van Dell
Date: January 21, 2006 08:57PM

Wow, long thread.

In all versions of the current MySQL online manuals, in
section 2.9.3 "Securing the Initial MySQL Accounts"
the solution information is provided.

(when you're done throwing food; read on).

On Linux I've always used;

Prompt-> mysql -u root -p
Enter Password: <cr>

Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 717 to server version: xx-xxx-xxxx

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>

Since there is no password yet, you get in.!

Notice that I used -p since the "...using password NO" error would
result if I had not! The initial grants have Using Password YES by default
even if it is null.

The default MySQL installation accounts are root and one or two other
users depending on your platform. Not to be confused with any platform
user logins..

Note: Simply sayng mysql <cr> will pick up the currently logged in user name
@ localhost, and unless you're logged in as root on a Linux / Unix box won't be
in the grants tables yet..

If it ever demands a password after install always try "monty" which
is Michael "Monty" Widenius nick name. (one of the founders).

It once did infact install a default password, and that was always
"monty"... but at the time, the docs clearly stated this too...

(ok, continue throwing food..)

Options: ReplyQuote


Subject
Written By
Posted
March 06, 2007 11:22PM
February 20, 2008 06:17AM
August 04, 2009 09:05PM
Re: MySQL Error Number 1045 Access denied
January 21, 2006 08:57PM
December 15, 2005 12:56AM
March 03, 2009 11:07PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.