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

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

    If you are using dj-database-url check the schema in your DATABASES

    https://github.com/kennethreitz/dj-database-url

    MySQL is

    'default': dj_database_url.config(default='mysql://USER:PASSWORD@localhost:PORT/NAME') 
    

    It solves the same error even without the PORT

    You set the password with:

    mysql -u user -p 
    

提交回复
热议问题