I have a pgsql db made with docker which is not accessible outsite of if. It is exposed on port 5432.
my db is hosted on my virtual machine ubuntu 20 IP = 123.4.5.6
I use a container with nginx for accessing my frontend and my backend
I want to access my database outside of the VM with a database client when calling the url 123.4.5.6/db-backdoor:5432/db-name
I've done some research and it's not possible to connect the db with http.
How should I write my nginx.conf for connecting my database client and how should I configure my databse client ?
Related
I have an issue with connecting to my databases via desktop client. I use ssh key to connect to my server via console and I am able to connect to my live server.
But no luck for my database connection. I use TablePlus as my desktop client and I keep getting SSH Error, can't connect to host. That's all I get.
How can I find out what the problem is exactly?
we have oracle database hosted at a third party location. we can only access that database from one server on our network. the third party only allowed access to the database from that server. our web apps are hosted on a different server and there is no way that we can open connection to the database from the web server. is there a way that we can use the allowed server to access the database from the web server which resides on the same network, kind of a centralized connection hub
As a practice industry wise . From Web-Server access to the database is not allowed from security point of view . Consult your network team by sending the ping of the IP address of the database server from web server . The result will show what is happening between web server and database server
I'm working on a webapp with nodejs that syncs data from an ERP sql server database with an e-commerce website. The trouble is that I don't know how to generate the connection between the nodejs app(web) and the sql server, 'cause the way to access to the ERP enviroment is through the remote desktop with the IP and windows user credentials. All the npm modules that I've been testing only allow me to connect without the request of the user and password of the windows server.
I hope someone can help me somehow.
Thank you!
You should configure your remote computer's firewall to allow remote connections SQL's server port. After that you are required to create a user other than root ( since root only works locally ) on your database so you can connect to that one.Then using the npm module 'mysql' you can connect to your database.
my project requires me to use PHP and connect to the oracle database service hosted by our department. I want to use amazon ec2 to deploy the project. Is it able to connect to an external oracle database from amazon ec2 by PHP?
I've tried google app engine. It doesn't support external database connection. what a drawback!
Yes, it does. By default, Ec2 instances launched in EC2-Classic have full outbound access. So, the Ec2 instance can connect to your Oracle DB Provided your Oracle DB is accessible over the internet (in other words, your Oracle DB has a public IP address and you have firewall rules configured on your end to allow inbound access to Oracle DB).
If you Oracle DB is in a private network, then you need proxy server or SSH tunnel (or something similar) to connect to the instance.
Overall, there is no limitation on EC2 side.
I am making some application and I need to connect to database which is on Amazon server.
It works fine from local but I need direct access to database without ssl tunneling.
On AWS console 3306 port is opened