
    sjo                    "    d dl mZ d dlZddZdS )	    )annotationsNenvdict[str, str]loggerlogging.Loggerc           
        	 dd l }|j                            |                     dd          t	          |                     dd                    |                     dd          |                     dd	          |                     d
d          dd          S # t
          $ r}|                    d|            d }~ww xY w)Nr   DB_HOST	localhostDB_PORT3306DB_USERrootDB_PASSWORD DB_NAMEanalysesutf8mb4T)hostportuserpassworddatabasecharsetuse_unicodezErreur de connexion MySQL : %s)mysql.connector	connectorconnectgetint	Exceptionerror)r   r   mysqlexcs       ./var/www/html/analyses/import_situations/db.pyget_db_connectionr%      s    &&K00SWWY//00F++WW]B//WWY
33 ' 
 
 	
    5s;;;s   BB 
B>"B99B>)r   r   r   r   )
__future__r   loggingr%        r$   <module>r*      s>    " " " " " "      r)   