still not working getting same error created a database with specific user and id password and followed this steps
-
Create a New Database:
- Run the following command to create a new database (e.g.,
gocardless_test
):sql
Copy code
CREATE DATABASE gocardless_test;
- Press Enter.
- Run the following command to create a new database (e.g.,
-
Verify Database Creation:
- To list all databases, run:
sql
Copy code
\l
- You should see
gocardless_test
in the list.
- To list all databases, run:
-
Exit PostgreSQL Shell:
- Type
\q
and press Enter to exit the PostgreSQL shell.
- Type
2.2 Create a User for Zapier
-
Access PostgreSQL Shell Again:
- Type:
bash
Copy code
psql postgres
- This brings you back to the PostgreSQL interactive shell.
- Type:
-
Create a New User:
- Run the following command to create a new user for Zapier (replace
your_password
with a strong password):sql
Copy code
CREATE USER zapier_user WITH PASSWORD 'your_password';
- Press Enter.
- Run the following command to create a new user for Zapier (replace
-
Grant Permissions:
- Grant the new user access to the
gocardless_test
database:sql
Copy code
GRANT ALL PRIVILEGES ON DATABASE gocardless_test TO zapier_user;
- Press Enter.
- Grant the new user access to the
-
Exit PostgreSQL Shell:
- Type
\q
and press Enter to exit the shell.
- Type
Step 3: Configure PostgreSQL for Remote Access
3.1 Edit PostgreSQL Configuration
-
Locate Configuration Files:
- The main PostgreSQL configuration file (
postgresql.conf
) is typically located in/usr/local/var/postgres/
.
- The main PostgreSQL configuration file (
-
Open Configuration File:
- Use a text editor (e.g., nano) to open the file:
bash
Copy code
nano /usr/local/var/postgres/postgresql.conf
- Use a text editor (e.g., nano) to open the file:
-
Modify Listen Addresses:
- Find the line that starts with
#listen_addresses
and change it to:plaintext
Copy code
listen_addresses = '*'
- This allows PostgreSQL to accept connections from any IP address.
- Find the line that starts with
-
Save Changes:
- Press
CTRL + X
, thenY
, and thenEnter
to save the changes and exit.
- Press
3.2 Edit pg_hba.conf for Client Authentication
-
Open pg_hba.conf:
- Open the file using nano:
bash
Copy code
nano /usr/local/var/postgres/pg_hba.conf
- Open the file using nano:
-
Add Remote Access Configuration:
- At the end of the file, add the following line to allow access from all IP addresses (you can also restrict this to specific IPs later):
plaintext
Copy code
host all all 0.0.0.0/0 md5
- This allows all users from any IP to connect to any database using password authentication.
- At the end of the file, add the following line to allow access from all IP addresses (you can also restrict this to specific IPs later):
-
Save Changes:
- Press
CTRL + X
, thenY
, and thenEnter
to save and exit.
- Press
3.3 Restart PostgreSQL
- Restart PostgreSQL:
- In the Terminal, run:
bash
Copy code
brew services restart postgresql
- In the Terminal, run:
Hi
We apologize for the inconvenience. Kindly contact our support team for further investigation with the issue. You can reach our support team via this link: https://zapier.com/app/get-help
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.