1. Turn off the postgresql service first
. 2. If you want postgresql to support remote access, you need to modify the two configuration files in the data folder under the directory
postgresql.conf
Set the value of the listen_addresses item in the file to ‘*’
pg_hba.conf
Add the following configuration under the host all all 127.0.0.1/32 md5 line after the ipv4 configuration of the configuration file, or directly modify this line to the following configuration host all 0.0.0.0/0 trust
If you do not want to allow all IP remote access, You can set 0.0.0.0 in the above configuration items to a specific IP value.
3. Right-click management on my computer-find service-find postgresql service, right-click to start
Read More:
- [Solved] PostgreSQL Error: Could not connect to server: no such file or directory
- [Solved] Vscode Connect to the remote server error: permission denied (public key)
- [Solved] Failed to connect to server(code:1006)
- Robo3T Remote Connect MongoDB Error: Failed to refresh ‘Collections‘. Error: ListCollections failed
- [Solved] appium Original error: Could not proxy command to the remote server. Original error: socket hang up
- Git push Submit to Remote Error: “remote: Support for password authentication was removed on August 13, 2021.“
- [Solved] Remote URL test failed: Could not read from remote repository.
- PostgreSQL insert data error: column “XXX” does not exist solution
- SourceTree Git Error: remote: HTTP Basic: Access denied fatal: Authentication failed
- How to Solve Error: could not read ok from ADB Server.failed to start daemon error: cannot connect to daemon
- [Solved] Error:couldn‘t connect to server 127.0.0.1:27017, connection attempt failed: SocketException: …
- [Solved] Spring cloud config server can’t parse the YML file of the remote warehouse, and it will also report an error
- [Solved] Postgres Start Error: Job for postgresql.service failed because the control process exited with error code.
- [Solved] JRebel Error: ERROR Failed to obtain seat. Unable to connect to license server
- [Solved] Unity Error: “Not allowed to access vertices on mesh”
- [Solved] jedis Connect redis Error: connect timed out
- hint: Updates were rejected because the remote contains work that you do To XXX
- [Solved] Error occurred during connect to primary: exception 3000301: Connection could not be established
- Huawei kafka Authentication error: Server not found in Kerberos database (7) – LOOKING_UP_SERVER
- How to Solve ClickHouse Connect Error: Connection refuse