lundi 3 décembre 2018

Undefined index: collation laravel 5.1 mysql connection

I m using laravel 5.1 to make connection to mysql host.Here is the sample.

\Config::set('database.connections.mysql', array(
        'driver' => 'mysql',
        'host' => "host name",
        'port' => 3306,
        'database' => 'db name',
        'username' => 'username',
        'password' => 'password'
    ));
$data = \DB::connection('mysql')
        ->table('tablename')
        ->get();

When i run the above code i get the error::

    [ErrorException]            
    Undefined index: collation 



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire