从本地连接到远程mysql时,出现此错误

时间:2020-04-11 17:10:19

标签: mysql express phpmyadmin

从本地连接到远程mysql时出现此错误。在这里,我使用远程,主机详细信息使用Express以及mysql和phpmyadmin

Error: ER_ACCESS_DENIED_ERROR: Access denied for user 'geonewso_sud'@'68.243.15.80' (using password: YES)
    at Handshake.Sequence._packetToError (C:\IFF\Personal\my-api\node_modules\mysql\lib\protocol\sequences\Sequence.js:47:14)
    at Handshake.ErrorPacket (C:\IFF\Personal\my-api\node_modules\mysql\lib\protocol\sequences\Handshake.js:123:18)
    at Protocol._parsePacket (C:\IFF\Personal\my-api\node_modules\mysql\lib\protocol\Protocol.js:291:23)
    at Parser._parsePacket (C:\IFF\Personal\my-api\node_modules\mysql\lib\protocol\Parser.js:433:10)
    at Parser.write (C:\IFF\Personal\my-api\node_modules\mysql\lib\protocol\Parser.js:43:10)
    at Protocol.write (C:\IFF\Personal\my-api\node_modules\mysql\lib\protocol\Protocol.js:38:16)
    at Socket.<anonymous> (C:\IFF\Personal\my-api\node_modules\mysql\lib\Connection.js:88:28)
    at Socket.<anonymous> (C:\IFF\Personal\my-api\node_modules\mysql\lib\Connection.js:526:10)
    at Socket.emit (events.js:182:13)
    at addChunk (_stream_readable.js:283:12)
    --------------------
    at Protocol._enqueue (C:\IFF\Personal\my-api\node_modules\mysql\lib\protocol\Protocol.js:144:48)
    at Protocol.handshake (C:\IFF\Personal\my-api\node_modules\mysql\lib\protocol\Protocol.js:51:23)
    at Connection.connect (C:\IFF\Personal\my-api\node_modules\mysql\lib\Connection.js:116:18)
    at Object.<anonymous> (C:\IFF\Personal\my-api\server.js:19:17)
    at Module._compile (internal/modules/cjs/loader.js:688:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
    at Module.load (internal/modules/cjs/loader.js:598:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
    at Function.Module._load (internal/modules/cjs/loader.js:529:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
  code: 'ER_ACCESS_DENIED_ERROR',
  errno: 1045,
  sqlMessage:
   'Access denied for user \'geonewso_sud\'@\'68.243.15.80\' (using password: YES)',
  sqlState: '28000',
  fatal: true }

0 个答案:

没有答案