Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
340 views
in Technique[技术] by (71.8m points)

mysql - Auth0 custom connection failing to connect to correct IP?

i'm trying to connect to my own database when using Auth0, however it doesn't appear to be using my IP address, as i'm getting this error:

ER_ACCESS_DENIED_ERROR: Access denied for user 'admin'@'pus3-a-ue2-1.outbound.auth0user.net'

However within my config I have got a different IP Address, obviously not put the IP below but it would be in this format:

function login(email, password, callback) {
  const mysql = require('mysql');
  const bcrypt = require('bcrypt');

  const connection = mysql.createConnection({
    host: '0.0.0.0',
    user: 'user',
    password: 'password',
    database: 'database'
  });

So if it failed to connect shouldn't the error be:

ER_ACCESS_DENIED_ERROR: Access denied for user 'admin'@'0.0.0.0'

question from:https://stackoverflow.com/questions/65886421/auth0-custom-connection-failing-to-connect-to-correct-ip

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...