Support the ongoing development of Laravel.io →
Installation Database

Hi I'm new the laravel so please bear with me.

I try to seed a db in a project which I got from my co-worker, which is working on his computer. I use a Mac with OS 10.9.

I try to seed a database with:

php artisan migrate --seed

I get the errors:

[PDOException]                                                               
SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known 

&

[ErrorException]                                                             
PDO::__construct(): php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known            

I installed a new version of php & mysql (I had one before from XAMPP but there where diff. errors) and added them to my bash profile. If I query the console with:

php -v 

I get:

PHP 5.6.5 (cli) (built: Feb  1 2015 15:06:26)

and

mysql -v 

I get:

Your MySQL connection id is 230
Server version: 5.6.23 MySQL Community Server (GPL)

For

laravel --version 

I get:

Laravel Installer version 1.1

So I guess the installation and the sourcing of the bash is fine.

I tried diff. solutions but before I screw up my machine settings I better ask.

Last updated 2 years ago.
0

did you set up your database info in the config/database file and/or .env file ?

0

Sign in to participate in this thread!

Eventy

Your banner here too?

360disrupt 360disrupt Joined 11 Feb 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.