how to connect mongosqld externally - mongodb

I'm using mongoDB in linux with BI connector(mongosqld)
mongosqld works well and it can be accessed from the local.
but it is not accessible from the external. (windows with mongodbODBC driver)
with Can't connect to MySQL server on 'server address' (10061)
Maybe external access is not possible. How do we fix it?
(port is open.)

Related

Can't connect to MYSQL linux VMware server (Through MySQL Workbench 8)

I am trying to access MYSQL DB on (Linux VMware Machine) through MySQL Workbench 8 on (Windows Machine), but getting this
Failed to Connect to MySQL at 192.168.100.135:3306 with user root
Host '192.168.xxx.x' is not allowed to connect to this MySQL Server
Notes:
--> Linux VM IP which mysql is installed: 192.168.100.135
--> Windows IP which I am trying to connect from: 192.168.xxx.x'
Error
This is the standard security configuration of MySQL, that just allows root connections from 127.0.0.1 and not from remote machines.
You can create a new user and grant permissions, as described in https://support.infrasightlabs.com/troubleshooting/host-is-not-allowed-to-connect-to-this-mysql-server/. Replace vScopeUserName with your username, and vScopeServerIP with your source IP address, which will be your Windows IP address in this case.

Access Odoo database from outside while Odoo deployed in AWS lightsail

I have installed AWS in a Linux VM at AWS Lightsail. Now need to access database using a DB client from my laptop. Somehow I am not able to connect the DB via port 5432.
I can access port 22 ftp after add a rule in AWS networking but not port 5432.
I tried to enable Linux VM firewall, but it did break all my connections.
Any advice would be appreciated. Thank you !
Did you change listen_addresses in postgresql.conf already?

How can I connect to a Postgresql database (which is on my local machine) using dbeaver on my virtual machine?

I have created a postgresql database on my local machine and I want to connect to that database on my virtual linux(centos) machine. But I could not figure it out. What should I type in the host section ? (Link here)
You need to port forward the localhost to the virtual machine using something like this you need to enter your host and guest IPs and ports accordingly.

How can I connect to local database on a windows machine from a tomcat server on Ubuntu in a virtual machine

I am trying to set up a server in a virtual machine using the Oracle VirtualBox. I use Ubuntu 18.04 LTS in the VirtualBox. I use PostgreSQL as my database.
In my Tomcat, I have a property file where I provide the database URL and password. I want the tomcat that is set up in the VirtualBox to be able to access a local database that is set up using PGAdmin in my Windows machine in which the VirtualBox is installed.
Is it possible to do that?
When connecting to a SQL server DB running on my host machine from a VM, I use the IP address to connect.
You can run ipconfig (or your OS's equivalent) to find the IP address of the machine serving the DB, then try to connect from your host machine via that IP address instead of the machine name.
There might be some VM-specific settings you need to tweak to allow network access between the VM and host, refer to this post for more info. Usually I have to set my VirtualBox network mode to bridged adapter.

Can't connect to MongoDb 4.0.9 on Windows server with shell

I have MongoDb 4.0.9 running as a service on Windows Server 2016 Standard.
This is my mongod.cfg:
For testing purposes I turned off the server's firewall completely.
I am not using SSH or any other tunnel so far
The Windows service logs on as "Network Service"
I have one user in the "admin" database with roles "userAdminAnyDatabase", "dbAdminAnyDatabase" and "readWriteAnyDatabase"
My local machine is Windows 10 and here I have Mongo 4.0.9 installed as well. I am trying to connect to my server's database by shell:
When I go on the server (Remote Desktop) I can connect successfully (same user credentials):
I am running out of ideas what I am doing wrong when remote connecting.
What is also confusing: I am doing the exact same thing on another server (different provider, different database, but also Windows Server 2016 Standard, MongoDb 4.0.9 and the same user and roles). And here I CAN connect.
So, I assume it has something to do with the settings of Windows Server (and not Mongo ...)?
Does anybody have an idea?
From what I could gather, it seems your the Windows Machine running the MongoDB service is hosted in the cloud.
If you are certain the windows firewall is turned off (make sure to disable it on Private, Public and Domain - if applicable)
Furthermore, my best guess is that the port might be block by the cloud hosting provider firewall.
Usually they provide the basic port openings (21, 80, 443, 1433, 3389, etc) - and port which are not common for windows (like 27017) are blocked (filtered) by default.
if you wish to verify this, run the following:
nmap <server hostname> to get the default ports checked.
for MongoDB run nmap -p 27017 <server hostname>