symfony migration User deprecated

168 Views Asked by At
alialhoumadi@Develtos-MacBook-Pro kantoorplanning % php bin/console make:migration   

[critical] Error thrown while running command "make:migration". Message: "An exception occurred in the driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for mariadb failed: nodename nor servname provided, or not known" In ExceptionConverter.php line 101:

An exception occurred in the driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for mariadb failed: nodename nor servname provided, or not known In Exception.php line 28:

SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for mariadb failed: nodename nor servname provided, or not known In Driver.php line 33:

SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for mariadb failed: nodename nor servname provided, or not known In Driver.php line 33:

PDO::__construct(): php_network_getaddresses: getaddrinfo for mariadb failed: nodename nor servname provided, or not known make:migration

2023-10-02T13:09:54+00:00 [info] User Deprecated: Relying on a fallback connection used to determine the database platform while connecting to a non-existing database is deprecated. Either use an existing database name in connection parameters or omit the database name if the platform and the server configuration allow that. (Connection.php:458 called by Connection.php:410, https://github.com/doctrine/dbal/pull/5707, package doctrine/dbal) alialhoumadi@Develtos-MacBook-Pro kantoorplanning %

hi my name is Ali ive had this error when i try to migrate. im using symfony 5 with mariadb 10.3 in a multi container using docker and i tried everything i cant migrate anything ive made sure my db works like 7 times and ive updated composer everything is up to dat there is no syntax errors or any misspelling. please excuse me if my message is bad or if i need to provide more info this is my first time on here.

0

There are 0 best solutions below