I have MacOS Capitain as my OS in which I have Postgres, and I have Windows 8 running on VMWare Fusion, in which I have QlikSence, now QlikSence needs to connect to Postgres through a wizard which I filled like follows:
Host Name: my IP address
Port: 5432
database: mydatabse
Username: myuserName
password: myPassword
I'm sure that database, username and password are correct, however the connection fails. Any help please, is there any setup or configuration on Postgres?
Update: Error msg:
Error Message :Please check the values for username , host and other
properties .Description: Access credentials are not valid for this
connection
Related
I would like to understand why I can't connect to my database using the ssh tunnel on dbeaver.
My database is hosted on a VPS using nginx.
I installed postgresql and created a user "userA" with a password "passwordUserA".
I created a new database "databaseA".
and gave the rights to the previously created user "userA
CREATE USER userA WITH PASSWORD 'passwordUserA' CREATEDB;
CREATE DATABASE databaseA;
ALTER DATABASE databaseA OWNER TO userA;
Now I would like to be able to connect to it remotely with dbeaver.
for the host ip: I enter the # ip of my remote server
the username: userA
the password: passwordUserA
the port: 22
dBeaver ssh connection settings
I should be able to connect to my database but dbeaver says "auth fail"
Does anyone know why the connection is not working properly?
For SSH connection you should to use linux system user with password (or ssh key) not database user.
After SSH connection established you put Database user and password on the 'Main' tab, using localhost as Host
Maybe a stupid question, I have the Following String received from my college, I have installed the PG admin and I need to provide the credentials such as username password, DB Name, and Port.
postgresql://aaaaaaaaa:bbbbbbbb#cccccc-development.ddddddd.us-east-1.rds.amazonaws.com:5432/eeeeeeeeeeeeee
I would like to know what is the credentials here such as username and password to connect to PostgreSQL.
Don't worry, Here is the breakdown of the Connection String.
Connection String: postgresql://aaaaaaaaa:bbbbbbbb#cccccc-development.ddddddd.us-east-1.rds.amazonaws.com:5432/eeeeeeeeeeeeee
The above Sring can be broken down into the following:
Host: cccccc-development.ddddddd.us-east-1.rds.amazonaws.com
Port: 5432
Database Name: eeeeeeeeeeeeee
username: aaaaaaaaa
Password: bbbbbbbb
I am trying to connect to a VM ubuntu from my local computer. On the VM I have created a postgresql database. Then I followed all steps that I could find on several tutorial when it comes to allow access for remote connexion to the db:
add host all all 0.0.0.0/0 trust to the pg_hba.conf file
add listen_addresses = '*' to the postgresql.conf file
remove the firewall by executing sudo ufw allow 5432/tcp
restart postresql by executing sudo systemctl restart postgresql
By using the command psql and then \c gives You are now connected to database "postgres" as user "postgres".
I then create a password by executing ALTER USER postgres WITH PASSWORD 'password';
Then I use postico to connect locally. I want to connect with this same default superuser postgres for testing. I use the VM ip address as host, db name is postgres user postgres, password is password and port 5432 as mentioned above.
After trying to connect for a while with the message opening connection to server, the result is:
could not connect to server: Operation timed out
Is the server running on host "***.**.**.***" and accepting
TCP/IP connections on port 5432?
Any help please? I did all steps I could find on many tutorials but still failing to connect.
I want to make talend metadata dbconnection with repository I have entered these as credentials
Login: sa
Password: ******
Server: Localhost\SQLEXPRESS
Port: 1433
Database: mydb
Additional Parameter: instance=SQLEXPRESS
but I get an error of unknown server host name localhost\sqlexpress, as I already connected to SQL Server Management Studio with these credentials.
Any suggestion would be appreciated.
Thanks
I know this is old, but I've the same problem and solved it doing (using the connection used at the topic as example) this way:
Login: sa
Password: ******
Server: Localhost
Port: 1433
Database: mydb
Additional Parameter: instance=SQLEXPRESS
Unlike when using SQL Server Management Studio, MS SQL Connections in TOS Data Integration go through JDBC. So, the server (or host) must either be an IP address or a DNS address which resolves.
In your case, I believe use the tMSSqlConnection component and the host should just be "localhost".
https://help.talend.com/display/TalendOpenStudioComponentsReferenceGuide62EN/tMSSqlConnection
I have recently installed postgresql 9.1 and pgadmin3. But I can't connect to server which I created with this config:
name: mydb
host: 127.0.0.1
port: 5432
service:
Maintenance DB: postgres
username: postgres
password: *
According to similar problems I've set my /etc/postgresql/9.1/main/pg_hba.conf file under ubuntu 12.04 LTS like this:
local all postgres md5
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all md5
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5
host all all localhost trust
But when I want to connect to the server I get this error:
Error connecting to the server: FATAL: password authentication failed for user "postgres"
FATAL: password authentication failed for user "postgres"
That was simple after installation of postgresql i should change the postgres user password
and my failure was because of that. The password can simply change through this commands under ubuntu 12.04 LTS:
sudo -u postgres psql
And then in psql:
\password
Now enter the new password and re-enter it.
That's OK! then you can simply sign in.
This way there is no need to change the configuration of pg_hba.conf file.
In fact i failed to login because of my invalid password!
Seems your DB is configured for "postgres" user and PgAdmin is trying to connect as "postgre" (without s in the end).