NodeJS/mySQL - ER_ACCESS_DENIED_ERROR Access denied for user 'root'@'localhost' (using password: YES)

前端 未结 29 4305
北恋
北恋 2020-12-13 13:26

I am attempting to connect to mySQL through a NodeJS file, but I receive the following error:

{ Error: ER_ACCESS_DENIED_ERROR: Access denied for user \'root\         


        
29条回答
  •  隐瞒了意图╮
    2020-12-13 13:49

    If you are connecting to an external server from localhost, you may need to add your gateway router address to MySQL's "Allowable Hosts" box.

    This address can be found after the @ sign in the error message:

    Access denied for user 'your_username'@'blah.blah.blah.yourisp.com'
    

提交回复
热议问题