mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #19377 - Emphasized database host link in tutorial
This commit is contained in:
@@ -34,13 +34,9 @@ aggregate with a database backend that falls within the affected release range.
|
||||
.. _Release 8.2.5: http://www.postgresql.org/docs/devel/static/release-8-2-5.html
|
||||
|
||||
PostgreSQL connection settings
|
||||
------------------------------
|
||||
-------------------------------
|
||||
|
||||
By default (empty :setting:`HOST`), the connection to the database is done
|
||||
through UNIX domain sockets ('local' lines in pg_hba.conf). If you want to
|
||||
connect through TCP sockets, set :setting:`HOST` to 'localhost' or '127.0.0.1'
|
||||
('host' lines in pg_hba.conf). On Windows, you should always define
|
||||
:setting:`HOST`, as UNIX domain sockets are not available.
|
||||
See :setting:`HOST` for details.
|
||||
|
||||
Optimizing PostgreSQL's configuration
|
||||
-------------------------------------
|
||||
|
||||
@@ -431,10 +431,12 @@ MySQL will connect via a Unix socket to the specified socket. For example::
|
||||
If you're using MySQL and this value *doesn't* start with a forward slash, then
|
||||
this value is assumed to be the host.
|
||||
|
||||
If you're using PostgreSQL, an empty string means to use a Unix domain socket
|
||||
for the connection, rather than a network connection to localhost. If you
|
||||
explicitly need to use a TCP/IP connection on the local machine with
|
||||
PostgreSQL, specify ``localhost`` here.
|
||||
If you're using PostgreSQL, by default (empty :setting:`HOST`), the connection
|
||||
to the database is done through UNIX domain sockets ('local' lines in
|
||||
``pg_hba.conf``). If you want to connect through TCP sockets, set
|
||||
:setting:`HOST` to 'localhost' or '127.0.0.1' ('host' lines in ``pg_hba.conf``).
|
||||
On Windows, you should always define :setting:`HOST`, as UNIX domain sockets
|
||||
are not available.
|
||||
|
||||
.. setting:: NAME
|
||||
|
||||
|
||||
Reference in New Issue
Block a user