mysql - PDO Exception with Laravel 4 php artisan migrate command on EC2 AWS -
i have ubuntu 12.04 instance on ec2 in aws , laravel 4 project uploaded there. trying run php artisan migrate, reason cannot connect mysql server through command. able mysql db on sql pro find using ssh (using elastic ip host). ssh server using elastic ip. i error when run php artisan migrate: [pdoexception] sqlstate[hy000] [2003] can't connect mysql server on '**.***.***.**' (11 1) migrate [--bench[="..."]] [--database[="..."]] [--path[="..."]] [--package[="..."]] [--pretend] [--seed] where starts represent "elastic ip", host use connect mysql in sql pro. in database.php config file, connecting using: 'mysql' => array( 'driver' => 'mysql', 'host' => '*elastic ip*', ...