mik-laj commented on a change in pull request #10413:
URL: https://github.com/apache/airflow/pull/10413#discussion_r473428052



##########
File path: docs/howto/initialize-database.rst
##########
@@ -48,12 +48,31 @@ SqlAlchemy backend. We recommend using **MySQL** or 
**Postgres**.
    want to set a default schema for your role with a
    command similar to ``ALTER ROLE username SET search_path = airflow, 
foobar;``
 
+Setup your database to host Airflow
+-----------------------------------
+
+Create a database called ``airflow`` and a database user that Airflow
+will use to access this database.
+
+Example, for **MySQL**:
+
+.. code-block:: sql
+   CREATE DATABASE airflow CHARACTER SET utf8 COLLATE utf8_unicode_ci;
+   CREATE USER 'airflow' IDENTIFIED BY 'airflow';
+   GRANT ALL PRIVILEGES ON airflow.* TO 'airflow';
+
+Configure Airflow's database connection string
+----------------------------------------------
+
 Once you've setup your database to host Airflow, you'll need to alter the
 SqlAlchemy connection string located in your configuration file
 ``$AIRFLOW_HOME/airflow.cfg``. You should then also change the "executor"
 setting to use "LocalExecutor", an executor that can parallelize task
 instances locally.

Review comment:
       ```suggestion
   Configure Airflow's database connection string
   ----------------------------------------------
   
   Once you've setup your database to host Airflow, you'll need to alter the
   SqlAlchemy connection string located in ``sql_alchemy_conn`` option in 
``[core]`` section in your configuration file
   ``$AIRFLOW_HOME/airflow.cfg``. 
   
   Configure a worker that supports parallelism
   --------------------------------------------
   
   You should then also change the "executor" option in the ``[core]`` option 
to use "LocalExecutor", an executor that can parallelize task instances locally.
   ```




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to