Why can’t I use migration in my symfony project?

I have a problem with my migration command.
I checked my credentials and they’re actually valid so I tried various methods.
I tried putting localhost and 127.0.0.1 with and without ports in this line in .env:
"mysql://'usr':'pwd'@host/db_name?serverVersion=8.0.35&charset=utf8"
I tried with and without password.
He are my problems.
When I use localhost I get these errors

In ExceptionConverter.php line 101:
                                                                                                                                    
  An exception occurred in the driver: SQLSTATE[HY000] [1045] Access denied for user 'Robertson'@'localhost' (using password: YES)  
                                                                                                                                    

In Exception.php line 28:
                                                                                               
  SQLSTATE[HY000] [1045] Access denied for user 'Robertson'@'localhost' (using password: YES)  
                                                                                               

In Driver.php line 33:
                                                                                               
  SQLSTATE[HY000] [1045] Access denied for user 'Robertson'@'localhost' (using password: YES)

and when I use the 127 as host, it just loads infinitely. I get no message or anything. The command just goes to a new line and nothing happens.

I even tried to use them without starting the server. I’m new to symfony and maybe someone had a similar problem but I can’t find it.
If any information is needed please tell me and I’ll deliver it

I’m using Fedora 38 btw