Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! Improvements for documentation on …
Browse files Browse the repository at this point in the history
…database setup
  • Loading branch information
Kamil Breguła committed Jan 15, 2021
1 parent 30b1b65 commit 1662aa0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions docs/apache-airflow/howto/set-up-database.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ the example below.
The exact format description is described in the SQLAlchemy documentation, see `Database Urls <https://docs.sqlalchemy.org/en/14/core/engines.html>`__. We will also show you some examples below.

Set up a MySQL
--------------
Setting up a MySQL Database
---------------------------

You need to create a database and a database user that Airflow will use to access this database.
In the example below, a database ``airflow_db`` and user with username ``airflow_user`` with password ``airflow_pass`` will be created
Expand Down Expand Up @@ -91,8 +91,8 @@ without any cert options provided.
However if you want to use other drivers visit the `MySQL Dialect <https://docs.sqlalchemy.org/en/13/dialects/mysql.html>`__ in SQLAlchemy documentation for more information regarding download
and setup of the SqlAlchemy connection.

Set up a PostgreSQL
-------------------
Setting up a PostgreSQL Database
--------------------------------

You need to create a database and a database user that Airflow will use to access this database.
In the example below, a database ``airflow_db`` and user with username ``airflow_user`` with password ``airflow_pass`` will be created
Expand All @@ -103,8 +103,6 @@ In the example below, a database ``airflow_db`` and user with username ``airflo
CREATE USER airflow_user WITH PASSWORD 'airflow_user';
GRANT ALL PRIVILEGES ON DATABASE airflow_db TO airflow_user;
You need to create a database and a user that Airflow will use to access this database.

You may need to update your Postgres ``pg_hba.conf`` to add the
``airflow`` user to the database access control list; and to reload
the database configuration to load your change. See
Expand Down

0 comments on commit 1662aa0

Please sign in to comment.