How does pgAdmin connect to the server? - postgresql

I've started to read about protocols (HTTP/TCP/IP etc.).
I have a few questions.
How does pgAdmin connect to the server? Which protocol does it use? Am I able to connect to the DB server via cmd? How do drivers connect to the DB server?

They use the well documented PostgreSQL frontend/backend protocol.

Related

Is that possible to connect to GCP PostgreSQL via ODBC

I trying to connect to GCP Postgres. The most convenient method my environment has is an ODBC driver. Will GCP serve that type of connection?
That should work. The server doesn't know it is talking to an ODBC driver. It speaks its native protocol, it is up to the ODBC driver to interpret that.

DNS ODBC Driver configuration for SSH RDS

I´d like to know if it is possible to connect to my rds database from my local machine (windows) using windows odbc data source. My problem is that I use SSH and i don´t know how can I input the parameters in odbc data source. I need this type of connection because I want to access RDS via vba excel. My database is Postgresql.
If you have a publicly accessible database (not recommended by AWS) and your IP address is allowed, then the normal ODBC connection will work.
By the sound of your setup, you have a private database. In which case, your options are:
Use a different ODBC driver that supports tunnelling.
Devart (https://www.devart.com/odbc/postgresql/) and Cdata (https://cdn.cdata.com/help/FPG/odbc/RSBPostgresql_c_SSH.htm) both have ODBC drivers that support SSH tunnelling.
Neither are free.
Use a VPN and point your driver at localhost

Heroku - Disable Postgresql SSL?

I have a PostGIS database on Heroku and I want to connect my external GeoServer to it. I can't do it because Geoserver does not support SSL and Heroku requires it.
Is there any way of disabling Heroku postgres SSL?
Thanks in advance
The simplified GeoServer UI does not allow to configure SSL connections, but you can setup a JNDI connection pool and provide all JDBC parameters you want that way:
http://docs.geoserver.org/stable/en/user/tutorials/tomcat-jndi/tomcat-jndi.html#configuring-a-postgresql-connection-pool
If you do run into a client that doesn't support SSL at all, you can possibly proxy it using a tool like stunnel.

Protocol issue connecting Derby by db2 ODBC

This is a problem when I tried to connect Derby Database by DB2 ODBC
I started the Derby Network Server and created a database named "mydb"
but,after I did as the steps described in an article on IBM's site,I countered a problem on the server side.
Step 1->db2 catalog tcpip node MYDERBY remote localhost server 1527
Step 2->db2 catalog db mydb at node MYDERBY authentication server
Step 3->db2 connect to mydb user abc using abc
Problem:
Execution failed because of a Distributed Protocol error:DRDA_Proto_SYNTAXRM;
CODPNT arg=112e;error code value=14;Plaintext connection attempt from an SSL enabled client?
What can I do to accomplish or it is unworkable??
db2_v10.12_winx64_expc
db-derby-10.11.1.1-bin
Current versions of the Derby Network Server do not communicate with the DB2 ODBC client, as far as I know. You might look here: http://apache-database.10148.n7.nabble.com/ODBC-Driver-for-Derby-td102587.html or here: http://www.easysoft.com/products/data_access/odbc-derby-driver/index.html#section=tab-1 or here: Derby Database ODBC Connection for some more ideas.
Note: I gave a relatively similar answer to a relatively similar question here: Derby Database ODBC Connection and it was deleted, so for all I know this answer may be deleted as well.

Access oracle database from another system?

Is it possible to access my oracle database from a separate system, other than the one on which the database is stored?
If yes, then how?
You can access the tables of a distant database by using your_table#your_database if you configured it properly.
Yes you can access your database which is on one machine( SERVER) from other machine (CLIENT). You need to install oracle client software on the CLIENT machine and then you can establish a connection to the server database through network . You have to use sqlplus to connect or if you are using windows then you can use tools like toad which will establish a connection between your client machine and database server machine .