Database connection using MySQLdb in Python within Maya

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to connect the database in Python within Maya using MySQLdb. I am getting a "No module named MySQLdb" error. Outside of Maya in Python, I am able to talk to the database.
Error: ModuleNotFoundError: file C:\Program Files\Autodesk\Maya2022\Python37\lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py line 142: No module named 'MySQLdb'
I am using the trial version of Autodesk Maya 2020. Python version is Python37.
Outside of Maya, I have Python39.
As I have seen reading data from the database is possible in Maya Software. It is a requirement to read data from the database in My project. If I cannot read data then I have to switch to some other software.
I have tried to update Python within Maya Software, did not succeed.
I tried "pip install some-package" My system saying already installed.