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

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.

Related

How to connect from one server to another server`s postgresql database by configuring firewall

I am trying to connect from Ubuntu 16.04 server to Gentoo server`s Postgresql database. But i cannot connect to it. Ubuntu server has internet with static Ip: 93.154.53.88. In my Gentoo server has Ip: 192.168.0.104. I configured my pg_hba.conf also to Ip address of Ubuntu server. But anyway it cannot connect to it. My pg_hba.conf is like below:
host all all 93.154.52.85/32 trust
host all all 93.154.53.88/32 md5
When i ping to my Gentoo Server like below it is not going. I think I should configure some firewall settings.
ping 93.154.53.88
But When i connected my Gentoo Server`s database from second Linux server it can connect which has Ip address: 93.154.52.85. But Ubuntu server cannot connect to it. I read some post in which iptables need to be configured Please Help me What to configure and how to do it. Any help is appreciated.

how to connect mongosqld externally

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.)

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>

pgAdmin can't connect to database server

Database server os = Ubuntu 16.04
client machine= Windows os 8.
we are not able to connect database server from pagAdmin which I have installed on my laptop (while its prompting for password).
Have you configured "pg_hba.conf" file in the server for remote access? IF not, you need to add following in the file
# vi /var/lib/pgsql/data/pg_hba.conf
host all all 192.168.101.20/24 trust
192.168.101.20/24 is just an example, you need to write clients IP and port.