core icon indicating copy to clipboard operation
core copied to clipboard

Connect to external database

Open jbrhinalyn opened this issue 8 years ago • 7 comments

I have my database on another server (209.97.163.71). When I access my application which is on another server, it give a Access denied and the IP is not on the database server IP. It pointing on the application IP Address (159.65.15.220).

See attachment for reference. (From RomainLanz, removed your picture seems we could saw part of your password, I recommend you to change it ASAP)

jbrhinalyn avatar Jun 29 '18 07:06 jbrhinalyn

On version 3.2, its working. but on version 4.1, that's the error.

jbrhinalyn avatar Jun 29 '18 07:06 jbrhinalyn

Because you are passing the domain, which resolves to the public ip and not the private ip. Mind changing the domain with 209.97.163.71.

thetutlage avatar Jun 29 '18 08:06 thetutlage

Hi @thetutlage

I change the it both on the .env and config/database.js file. Its still the same. screenshot_2

jbrhinalyn avatar Jun 29 '18 09:06 jbrhinalyn

Hi @thetutlage

It's now working. The main cause of the error is the special characters i had in the password. Similar issue to this one - https://forum.adonisjs.com/t/connect-to-a-external-db-rds-amazon/1279

jbrhinalyn avatar Jun 29 '18 10:06 jbrhinalyn

Closing now the issue.

jbrhinalyn avatar Jun 29 '18 10:06 jbrhinalyn

Ahhh! Thanks for sharing the resolution

thetutlage avatar Jun 29 '18 12:06 thetutlage

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Mar 11 '20 04:03 lock[bot]