Jump to content

Difference in login on windows box


benjam

Recommended Posts

I am currently having a very odd issue.

 

When I try to login to mysql via command line with the following:

$> mysql -u 'username' -p'password'    (I also tried with -p 'password' and -p='password')

ERROR 1045 (28000): Access denied for user 'username'@'localhost' (using password: YES)

 

if I log in with:

$> mysql -u 'username' -p

Enter password: ********

 

it logs me in just fine.

 

Why would the two methods be different? And how can I fix it? (I need to be able to log in completely via command line because I use a batch file to run some things)

Link to comment
https://forums.phpfreaks.com/topic/154409-difference-in-login-on-windows-box/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.