You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Ash Berlin-Taylor (Jira)" <ji...@apache.org> on 2019/09/23 14:50:00 UTC

[jira] [Closed] (AIRFLOW-107) syntax error when running airflow initdb with mysql connection

     [ https://issues.apache.org/jira/browse/AIRFLOW-107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ash Berlin-Taylor closed AIRFLOW-107.
-------------------------------------
    Resolution: Won't Fix

Mysql 5.0 is _waay_ to old to support

> syntax error when running airflow initdb with mysql connection
> --------------------------------------------------------------
>
>                 Key: AIRFLOW-107
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-107
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: database
>    Affects Versions: 1.7.0
>            Reporter: James Yoo
>            Priority: Major
>              Labels: mysql
>
> Not sure if I've setup my mysql database correctly or not, assume that you just specify a connection string to a mysql server and port?  In any case, I'm getting a syntax error when running 'airflow initdb'
> {code}
>   cursor.execute(statement, parameters)
>   File "build/bdist.linux-x86_64/egg/MySQLdb/cursors.py", line 226, in execute
>   File "build/bdist.linux-x86_64/egg/MySQLdb/connections.py", line 36, in defaulterrorhandler
> sqlalchemy.exc.ProgrammingError: (_mysql_exceptions.ProgrammingError) (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'connection (\n\tid INTEGER NOT NULL AUTO_INCREMENT, \n\tconn_id VARCHAR(250), \n\tconn' at line 1") [SQL: u'\nCREATE TABLE connection (\n\tid INTEGER NOT NULL AUTO_INCREMENT, \n\tconn_id VARCHAR(250), \n\tconn_type VARCHAR(500), \n\thost VARCHAR(500), \n\t`schema` VARCHAR(500), \n\tlogin VARCHAR(500), \n\tpassword VARCHAR(500), \n\tport INTEGER, \n\textra VARCHAR(5000), \n\tPRIMARY KEY (id)\n)\n\n']
> {code} 
> python 2.7.11,
> mysqlclient 1.3.7,
> sqlalchemy 1.0.12
> mysql  Ver 14.14 Distrib 5.5.14, for Linux (x86_64) using  EditLine wrapper
> Server version:         5.0.27-max MySQL Community Edition - Experimental (GPL)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)