From 335bd60cb3b0cc16aa7c9a9ace83073ae7d9e82c Mon Sep 17 00:00:00 2001 From: Nigel Millward <42939825+nigel-millward@users.noreply.github.com> Date: Sat, 9 Jul 2022 19:05:17 +0100 Subject: [PATCH] Fix syntax in mysql setup documentation (#24893 (#24939) In the 'set-up-databases' documentation the code block was not working on newer versions of mssql. Updated the docs so that the query works on supported 2017 and 2019 versions of mssql --- docs/apache-airflow/howto/set-up-database.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/apache-airflow/howto/set-up-database.rst b/docs/apache-airflow/howto/set-up-database.rst index cdf9f04aceceb..15a3d10c43852 100644 --- a/docs/apache-airflow/howto/set-up-database.rst +++ b/docs/apache-airflow/howto/set-up-database.rst @@ -325,7 +325,7 @@ You can read more about transaction isolation and snapshot features at CREATE LOGIN airflow_user WITH PASSWORD='airflow_pass123%'; USE airflow; CREATE USER airflow_user FROM LOGIN airflow_user; - GRANT ALL PRIVILEGES ON DATABASE airflow TO airflow_user; + GRANT ALL PRIVILEGES ON DATABASE::airflow TO airflow_user; We recommend using the ``mssql+pyodbc`` driver and specifying it in your SqlAlchemy connection string.