MySQL connection URL

I am trying to connect to MySQL with PyMySQL.
This is the code I use in version 0.2.6 and it goes well.

DATABASE_URL = ‘mysql+pymysql://root:123456@localhost:3306/test’
database = databases.Database(DATABASE_URL)

And this is the error message when I run on version 0.3.0:

Traceback (most recent call last):
File “/home/ubuntu/PycharmProjects/python_fastapi_test/test/”, line 14, in
from test.database import connect_to_mysql, close_mysql_connection
File “/home/ubuntu/PycharmProjects/python_fastapi_test/test/”, line 25, in
db = Database(DATABASE_URL)
File “/home/ubuntu/PycharmProjects/python_fastapi_test/venv/lib/python3.8/site-packages/databases/”, line 65, in init
backend_str = self.SUPPORTED_BACKENDS[self.url.scheme]
KeyError: ‘mysql+pymysql’

Could anyone please help me. Thank you!

I am also new to databases. If you look into the code you can see that only mysql is a valid url. so just remove the pymysql