Juvelir97 opened a new issue, #29418:
URL: https://github.com/apache/airflow/issues/29418

   ### Apache Airflow version
   
   Other Airflow 2 version (please specify below)
   
   ### What happened
   
   Hello,
   
   Trying to connect Airflow-2.4.3 to Mysql 8.0.29-1 Database 
   Using the string inside airflow.cfg 
   sql_alchemy_conn = mysql+mysqldb://USER:PASS@HOST:3306/airflow
   
   running airflow commands (e,g, airflow db init or  airflow config get-value 
database sql_alchemy_conn)we are facing the issue:
   Traceback (most recent call last):
     File 
"/opt/mapr/airflow/airflow-2.4.3/build/env/lib/python3.9/site-packages/MySQLdb/__init__.py",
 line 18, in <module>
       from . import _mysql
   ImportError: libmysqlclient.so.20: cannot open shared object file: No such 
file or directory
   
   During handling of the above exception, another exception occurred:
   
   Traceback (most recent call last):
     File "/opt/mapr/airflow/airflow-2.4.3/bin/airflow", line 4, in <module>
       from airflow.__main__ import main
     File 
"/opt/mapr/airflow/airflow-2.4.3/build/env/lib/python3.9/site-packages/airflow/__init__.py",
 line 46, in <module>
       settings.initialize()
     File 
"/opt/mapr/airflow/airflow-2.4.3/build/env/lib/python3.9/site-packages/airflow/settings.py",
 line 571, in initialize
       configure_adapters()
     File 
"/opt/mapr/airflow/airflow-2.4.3/build/env/lib/python3.9/site-packages/airflow/settings.py",
 line 436, in configure_adapters
       import MySQLdb.converters
     File 
"/opt/mapr/airflow/airflow-2.4.3/build/env/lib/python3.9/site-packages/MySQLdb/__init__.py",
 line 24, in <module>
       version_info, _mysql.version_info, _mysql.__file__
   NameError: name '_mysql' is not defined
   
   
   Can you please assist?
   Thanks in advance
   
   ### What you think should happen instead
   
   _No response_
   
   ### How to reproduce
   
   _No response_
   
   ### Operating System
   
   RHEL 8.4
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Other
   
   ### Deployment details
   
   Was deployed as part of Mapr cluster
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to