how to overcome ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: NO) permanently

前端 未结 14 1423
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-23 13:49

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         


        
相关标签:
14条回答
  • 2020-12-23 14:28

    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.

    User ODBC with no password

    Problem Solved

    0 讨论(0)
  • 2020-12-23 14:34

    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.

    0 讨论(0)
提交回复
热议问题