Can't run migrations in Laravel 8: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known
just in .env file change the value of DB_HOST to 127.0.0.1
"change DB_HOST=mysql
to DB_HOST=127.0.0.1
"
php_network_getaddresses: getaddrinfo failed: Name or service not known
If you only want to submit GET data to the URL, you should use something straightforward like file_get_contents();
$myGetData = "?var1=val1&var2=val2";
file_get_contents($url.$myGetData);
Laravel & LEMP: getaddrinfo failed: Name or service not known
fix your host
DB_HOST=mysql
to
DB_HOST=127.0.0.1
Related Topics
How to Use Select Distinct and Concat in the Same SQL Statement
T-Sql Challenges from Hackerrank
How to Extract Part of a String in Hive
Postgresql Error: Syntax Error At or Near "Varchar"
Using Nullif to Divide by Zero
Sql Query to Check If a Name Begins and Ends With a Vowel
Reactjs Connection With Database
Copy and Insert to Same Table No Duplication and With Minor Changes to Value
Replace Default Null Values Returned from Left Outer Join
How to Delete Multiple Rows in Diferent Tables
Sql - Finding Students Taking 2 or More Classes
Mysql Error 1449: the User Specified as a Definer Does Not Exist
How to Select Rows With Only Numeric Characters in Oracle SQL
Sql to Find Upper Case Words from a Column
Posgresql - Error: Relation "Table_Name" Does Not Exist. How to Query Without Schema Name