Use the urlencode function to encode a MySQL password containing special chars.
Edit doctrine.yaml file under (config->packages) of your project.
Replace below line:
url: '%env(DATABASE_URL)%'
By new line:
url: '%env(resolve:DATABASE_URL)%'
Hope it will help.