Connect Rasa with Mysql Database

im trying to connect my assistant to mysql but it shows this error:

return import(“MySQLdb”)

ModuleNotFoundError: No module named ‘MySQLdb’

It would be more helpful to show the full code.

all i did is adding this piece of code in endpoints.yml


type: SQL

dialect: "mysql"  # the dialect used to interact with the db

url: "***************"  # (optional) host of the sql db, e.g. "localhost"

db: rasa

username: **********

password: ************

So you get that error when running rasa, right?