ImportError: No module named 'MySQL'

796    Asked by Asisthapandey in SQL Server , Asked on Jun 20, 2021

FYI, I have already installed the Connector/Python for MySQL successfully. I used the below code in the shell to test my connection:

import mysql.connector

I received the following error message ”importerror: no module named mysql.connector”:

Traceback (most recent call last):

  File "", line 1, in

    import mysql.connector

ImportError: No module named 'mysql'

Kindly help, how to resolve it.


Answered by Arjun Arora

Your Answer

Interviews

Parent Categories