Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connect to MySql with a user/pass?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi all,

I cannot seem to connect to MySQL with a user and pass.

In mysql I set up things in the MySQL user table according to the manual:
mysql>use mysql;
mysql> INSERT INTO user VALUES('localhost','monty',PASSWORD('secret'),'Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y');

Then I exit and try and connect:

mysql -u monty -psecret

I get the following error:

Warning:Access denied for user 'monty@localhost'(using password:YES)

mysql -u monty works just fine. In fact mysql -u anyone works just fine.

Am I missing something? I'm on Win2k.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top