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 gkittelson 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 problem

Status
Not open for further replies.

alan123

MIS
Oct 17, 2002
149
US
After adding a new user, I tried to connect to mysql, if I use "mysql -u username -p database" then enter the password, I can login to mysql smoothly, however if I type "mysql -u username -ppassword database" (on one line), it says "Error 1045: access denied for user: 'username@localhost' (Using password: YES)", why I cannot login this way? how I can fix it? thanks in advance for any reply.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top