vendredi 22 juillet 2016

How to connect to remote server in laravel

I am trying to connect to other db server in laravel, i changed the host and port in my database.php but it is not working can any one suggest help.

This is my database.php:

'mysql' => array(
        'driver'    => 'mysql',
        'host'      => '192.168.1.6',
        'port'      => '3306',
        'database'  => 'ired4',
        'username'  => 'root',
        'password'  => 'root',
        'charset'   => 'utf8',
        'collation' => 'utf8_unicode_ci',
        'prefix'    => '',

    ),

I am getting the following error:

PDOException (2002)
SQLSTATE[HY000] [2002] Connection refused



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire