benjam Posted April 16, 2009 Share Posted April 16, 2009 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 More sharing options...
xtopolis Posted April 17, 2009 Share Posted April 17, 2009 Are you using the quotes? What about as: mysql -u username -pPaSswOrd (just what google tells me).. but if you're not using the single quotes, then disregard this. Link to comment https://forums.phpfreaks.com/topic/154409-difference-in-login-on-windows-box/#findComment-812037 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.