Ciao Tatino, grazie per avere risposto.
Come db sto usanda mysql. Ho configurato il file .env in questo modo:
###> doctrine/doctrine-bundle ###
# Format described at
https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
#
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
DATABASE_URL="mysql://nome utente db:password db@127.0.0.1:5432/nomedb?serverVersion=5.7"
# DATABASE_URL="postgresql://root:@password/nomedb?serverVersion=13&charset=utf8"
###< doctrine/doctrine-bundle ###
ho cambiato la porta come da te suggerito, e mi da questo errore:
In AbstractMySQLDriver.php line 112:
An exception occurred in driver: SQLSTATE[HY000] [2002] Connection refused
In Exception.php line 18:
SQLSTATE[HY000] [2002] Connection refused
In PDOConnection.php line 39:
SQLSTATE[HY000] [2002] Connection refused
doctrine:database:create [-s|--shard SHARD] [-c|--connection [CONNECTION]] [--if-not-exists]