driver = "org.mariadb.jdbc.Driver"

url = f"jdbc:mysql://{user}:{password}@{database_host}/{database_name}?sslaccept=strict"

The PlanetScale url does not require the host value in the url string and is set to 3306 as default. I have tried adding it and am met with an invalid url error.