Error com php artisan migrate

0 respostas
phplaravel
Mezzosd

Illuminate\Database\QueryException

SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Este host no conhecido. (SQL: select * from information_schema.tables where table_schema = laravel and table_name = migrations and table_type = ‘BASE TABLE’)

at C:\wamp64\www\vendor\laravel\framework\src\Illuminate\Database\Connection.php:678

674         // If an exception occurs when attempting to run a query, well format the error

675         // message to include the bindings with SQL, which will make this exception a

676         // lot more helpful to the developer instead of just the databases errors.

677         catch (Exception $e) {

 678▕             throw new QueryException(

679▕                 $query, $this->prepareBindings($bindings), $e

680▕             );

681▕         }

682

1 C:\wamp64\www\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:70
PDOException::("PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Este host no conhecido. ")

2 C:\wamp64\www\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:70
PDO::__construct(“mysql:host=mysql;port=3306;dbname=laravel”, “root”, “”, [])

Criado 10 de dezembro de 2020
Respostas 0
Participantes 1