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.
did you set up your database info in the config/database file and/or .env file ?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community