I am using jaydebeapi in python 3 to run queries. I need to connect to Netezza and MySql both. my code runs both queries separately without any problem but when I run one after another it gives an error for the second one. I close both connection and cursor for the first query (Netezza) but still get the following error:
jpype._jexception.RuntimeExceptionPyRaisable: java.lang.RuntimeException: Class com.mysql.jdbc.Driver not found