Error connecting to database! Error detail: No module named 'mysql'

Preformatted textpython3 -m pip install mysql-connector-python
Requirement already satisfied: mysql-connector-python in /home/rohan/.local/lib/python3.8/site-packages (8.0.31)
Requirement already satisfied: protobuf<=3.20.1,>=3.11.0 in /home/rohan/anaconda3/lib/python3.8/site-packages (from mysql-connector-python) (3.19.4)`

i am already install the package but still getting error .

Please copy/paste in a transcript of your complete error, including the
command used to produce it, between triple backticks:

 paste transcript
 here please

You may also need to include your source code so that we can see how
you’re trying to use the mysql module.

Cameron Simpson

Thanks cameron for your Time .it will solve .