1
I am trying to run the Migrations on the Windows and bumped into the following error, do not know if and connection to the database what can be
Illuminate\Database\QueryException : SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution (SQL: select * from information_schema.tables where table_schema = mensis and table_name = migrations and table_type = 'BASE TABLE') at /var/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php:665 661| // If an exception occurs when attempting to run a query, we'll format the error 662| // message to include the bindings with SQL, which will make this exception a 663| // lot more helpful to the developer instead of just the database's errors. 664| catch (Exception $e) { > 665| throw new QueryException( 666| $query, $this->prepareBindings($bindings), $e 667| ); 668| } 669| Exception trace: 1 PDOException::("PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution") /var/www/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70 2 PDO::__construct("mysql:host=mysql;port=3306;dbname=mensis", "mensis", "mensis", []) /var/www/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70 Please use the argument -v to see more details.
.env
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=aqbanc
DB_USERNAME=root
DB_PASSWORD=
Poise My configuration is all right and will not in case I’m using xampp on linux and even downloading a new application Able does not run migrate.
– Richard carlos
Did you set the configuration correctly? @Richardcarlos you read my solution and put
localhost
orIP
address?– novic
Remember to execute the
php artisan config:cache
after changing the . env.– CypherPotato
if your bank is on a virtual machine that happens to be called "mysql" check for remote permission.
– Will Knippelberg
@VirgilioNovic Minha configuração e essa: 
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=aqbanc
DB_USERNAME=root
DB_PASSWORD=
– Richard carlos
@Richardcarlos the
DB_PASSWORD
is blank? and your programming machine is the same as the bank’s?– novic
It’s because I’m using shampoos
– Richard carlos
Here’s what I’d do
Xampp
and create a password for the userroot
and that problem will end. @Richardcarlos or even a user with privileges for the bank.– novic
And how do I do it in shaman? Sorry for my ignorance I had never done it before @Virgilionovic.
– Richard carlos
https://tekzoom.com.br/como-alterar-a-senha-do-mysql-xampp-e-do-phpmyadmin/ @Richardcarlos use this link
– novic