Relative Content

Tag Archive for pythonmysql-pythonmysql-connector

Can’t connect to mysql database from the python code using mysql.connector

I m unable to connect to my database and it gives this error that object is not callable. I did search up the error and even what it means. I changed a lots of stuff in the code but it didn’t work for me.
like instead of using the import mysql.connector.connect() to connect to the database I used connection.MySQLConnection() and it still gave the same error. I even changed the variable names because I saw some where that variables could also be an issue some time. It didn’t help either, the problem might not be big but I m just having a hard time to fix it.