An exception occurred in driver: SQLSTATE[HY000] [2002] Connection timed out

  angular, connection, database, symfony, timed

I have deployed my symfony 5 API on my host but when I try to authenticate with my connection form on the Angular 10 client side,
i get this error

here is the syntax of my database url in my .env:

DATABASE_URL = mysql://name:[email protected]/dbname

Source: Symfony Questions