Host of my web in symfony

Hello,

I’m starting a project in Symfony and I don’t know exactly what to put as host in the parameters.yml file. I have tried literally everything but nothing works when I execute php bin/console doctrine:schema:create in order to create the tables on the batabase. I just get the error:

_PDO::_construct(): php_network_getaddresses: getaddrinfo failed: Unknown host.

Could you please tell me what the host should be for my website? leemo.000webhost.com

Thank you

host is localhost? :smiley:

No, infinity, no. Is not localhost. It is localhost when I have the files on the server. But as I wrote, I have to use a command line to use doctrine and generate the tables. This command only works from the command windows, meaning, I have to connect from my computer to the BD hosted in 000webhost. So no, localhost is not what I’m looking for.

Oh no you can’t do that then sorry.

You’d need Hostinger http://hostinger.com and they give you a hostname like db.hostinger.com etc.

1 Like