I’m trying to connect to a MySQL database from blender3d but seem to be running into problems. I’m using the MySQLdb interface module, but whenever I try to run my code I get the following error
Traceback (most recent call last): File "Text.001", line 3, in ? AttributeError: 'module' object has no attribute 'connect'
The code error occurs when I try to call the MySQLdb.connect function, it doesn’t seem to be able to locate the function.
I ran dir(MySQLdb) and it returned a small list of attributes but no functions.
However if I try to run my exact same code in python from the command prompt DOS it runs perfectly. What am I doing wrong here - bcoz there isn’t anything worng with my code and I am importing the module.
I would appreciate any form of help available for this.