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

tracker_store:

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?

yes

Hi @walaareafaee did you find the solution to this?

pip install mysqlclient

@walaareafaee @webdev-rohit This worked for me. Might help you as well.