python /home/admin/mtr/script_for_cron.py -j default -m 30 -a 'python3 ~/workarea/git/Velours/python/misc/prepare_sccu_portfolios.py --date_debut=$(date +%Y-%m-%d) --date_fin=$(date +%Y-%m-%d) ' -s traitement_sccu -M 0 -S 0 -U 100,100,100 import MySQLdb succeeded Import error (python version) Traceback (most recent call last): File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 41, in __init__ self.db = MySQLdb.connect(host=host, db=dbname, user=user, passwd=password) File "/home/admin/.local/lib/python3.8/site-packages/MySQLdb/__init__.py", line 121, in Connect return Connection(*args, **kwargs) File "/home/admin/.local/lib/python3.8/site-packages/MySQLdb/connections.py", line 200, in __init__ super().__init__(*args, **kwargs2) MySQLdb.OperationalError: (1040, 'Too many connections') During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/admin/workarea/git/Velours/python/misc/prepare_sccu_portfolios.py", line 125, in context = ContextDatouExec(host, database, username, password) File "/home/admin/workarea/git/Velours/python/mtr/datou/datou_lib.py", line 1319, in __init__ self.gq = general_queries(host, username, password, database,db_type=db_type,mbp=mbp,mfp=mfp,table_mbp_select=table_mbp_select) File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 49, in __init__ raise Exception("Unable to connect to " + str(host) + " : " + str(e)) Exception: Unable to connect to sql.fotonower.com : (1040, 'Too many connections') Command exited with non-zero status 1 1.15user 0.73system 0:01.41elapsed 132%CPU (0avgtext+0avgdata 111664maxresident)k 616inputs+0outputs (11major+26219minor)pagefaults 0swaps