mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
19 lines
1.3 KiB
Plaintext
19 lines
1.3 KiB
Plaintext
To create a new PostGIS Connection, you need to know the host, port, and your username/password for the database server.
|
|
<h4>Required Parameters</h4>
|
|
<ul>
|
|
<li>Name - a descriptive name for this connection
|
|
<li>Host - the host name of the database server (eg. madison.qgis.org)
|
|
<li>Database - name of the database to connect to
|
|
<li>Port - port that PostgreSQL is listening on. By default this is 5432. If in doubt, check with your database administrator.
|
|
<li>Username - your database user name
|
|
<li>Password - your database password
|
|
</ul>
|
|
<h4>Options</h4>
|
|
<ol>
|
|
<li><i>Save Password</i> - save your password so you don't have to enter each time. The password is stored in clear text with your QGIS preferences.
|
|
<li><i>Only look in the geometry_columns table</i> - normally QGIS examines every table in the database to see if it has a geometry column and if so, adds it to the list of layers. Checking this box tells QGIS to only list layer that have been "registered" and have an entry in the geometry_columns table.
|
|
<li><i>Only look in the 'public' schema</i> - this limits the search for layers to the public schema
|
|
</ol>
|
|
<h4>Testing the Connection</h4>
|
|
Clicking on the <i>Test Connection</i> button initiates a connect attempt to the database using the parameters you specified. This is a good way to check the connection parameters prior to saving the connection.
|