when am trying to open mysql in windows cmd by typing mysql. the following error is occuring.
ERROR 1045 (28000): Access denied for user ODBC@localhost (usin
You need to create an user "ODBC" for MySql with no password. Do that in PHPMyAdmin. That will solve your problem.
But remember, if it's only your local development environment, no problem. It'll create a serious security hole in your production environment.
I encountered this problem today. I tried mysql -u root -p
, but it doesn't work.
I restarted the mysql service by two commands:
net stop mysql
and net start mysql
then tried the command mysql
. It worked.