connect dbeaver using existing local DSN - postgresql

I have a machine with a local system DSN configured.
This connection points to a PostgreSQL database.
This works well (BO is using it)
Can I use this existing local DSN to connect dbeaver to this PostgreSQL Database?
I do not know the password of the database, hence my hope of using the already configured and working DSN.

Could not solve this, used PostgreSQL drivers

Related

postgresql pg library taking windows username instead of postgresql

i am using pg lib in strapi application, where initially it creates postgres connection using correct postgresql username(postgres), database name(strapi_db) and password(postgres) but after login it changed it to connect using my windows 10 username(rayappan.a, and database as rayappan.a). it seems strange to me because i never configured anywhere to use my windows credentials for POSTGRESQL connection. please any one tell me how to fix username connection issue
Regards,
Rayappan Antoniraj
Take a look into https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING . It states that username:
Defaults to be the same as the operating system name of the user running the application."
The database name:
Defaults to be the same as the user name.
So it seems a new connection with parameters not set is made.

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

Postgres link to Big Query using ODBC drivers

I'm trying to build a link from Postgres (Windows installation) to Google Big Query. In order to do so I've found 3rd party ODBC drivers by Simba, installed and configured successfully. Next step was to create a link in Postgres. I was looking at dblink function in Postgres to do so. Documentation of dblink_connect states that I need to pass libpq-style connection info string which should be similar to hostaddr=127.0.0.1 port=5432 dbname=mydb user=postgres password=mypasswd.
Question is how should I create a dblink connection using installed ODBC drivers? What should be my hostaddr and port?
When I am googling for Postgres dblink connection using ODBC I always find how to connect to Postgres instead of from Postgres. Is it at all possible?
You could also simply install the FDW and query forign tables of bigquery: https://github.com/gabfl/bigquery_fdw
Postgres dblink is a module that supports connections to other PostgreSQL databases. It doesn't support ODBC data sources.
You may want to try ODBC-Link which allows to connect to any ODBC data source. Another approach is to use ODBC version of Postgres Foreign Data Wrappers. There are several extensions that implement FDW for ODBC data sources and they are listed on Postgres FDW page.

PostgreSQL: One database to multiple user

I have PostgreSQL 9.3 version. I have created database name db1 now I need it to share with other users who all are connected with the LAN's to connect other applications with the same database.
In SQL Server: We can do this by selecting server name with login details.
Question:
Is it possible in PostgreSQL?
If yes, how can do this?
What is the procedure?
You will need to modify pg_hba.conf to allow remote connections to the database. Information about pg_hba.conf can be found here.
After that, you can connect programatically with a connection string, or similar to your image, with a GUI application like pgAdmin.
To connect (remotely or locally) from pgAdmin choose File -> Add Server... and enter the connection information into the dialog box. Here's an example of the window:
Your client computers will also need to have PostgreSQL drivers as well. If you're doing this in Windows, you'll probably be using ODBC. The PostgreSQL ODBC drivers are here. Info on the connection string format can be found here.
Here's an example of what pgAdmin looks like:

Remote Database Connection Setup in Netbeans

I'm totally junior in this area :)
I have JAVA version 7 on my PC.
I want to connect my PostgreSQL database to NetBeans.
Based on my search I found that I should get JDBC driver. so I downloaded JDBC41 Postgresql Driver, Version 9.3-1100 jar files from here.
then based on what I found for connection remote Mysql, did similar changes to connect to my PostgreSQL database.
As you can see in the image, connection couldn't established.
Based on what my host says, I added my IP address to "Remote PostgreSQL Database Access" page of my host.
I'm not sure my host name is correct. I used Dedicated IP Address of my site.
Any suggestion would be appreciated. Thanks
My fault was entering wrong user name and pass instead of using user name and password of database :(