PostgreSQL: One database to multiple user -
I have a PostgreSQL version 9.3. I have created the database name db1
Now I need to share with other users who are connected with all LAN, to connect other applications from the same database.
Server in SQL : We can do this by selecting the server name with the login name.
You will need to modify pg_hba.conf
to allow remote connections to the database. pg_hba Information about .conf
can be found.
After that, you can connect programming with a string, Add File -> Server ... to connect to a GUI application like.
from pgAdmin (remote or locally), similar to your image. Select / strong> and enter the connection information in the dialog box. Here is an example of a window:
Your client computers will also need the same with PostgreSQL drivers. If you are doing this in Windows, then you will probably use the ODBC. Postgresqua ODBC driver connection string can be found information on the format.
Here's an example of what pgAdmin looks like:
Comments
Post a Comment