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

前端 未结 14 1656
爱一瞬间的悲伤
爱一瞬间的悲伤 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:07

    for some reason, the ODBC user is the default username under windows even if you didn't create that user at setup time. simply typing

    mysql
    

    without specifying a username will attempt to connect with the non-existent ODBC username, and give:

    Error 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: NO)

    Instead, try specifying a username that you know, for example:

    mysql -u root -p
    

    where -u root specified the username root and -p will make the command prompt for a password.

提交回复
热议问题