dimanche 25 décembre 2016

Laravel connect with external db?

I try to connect with a external database with my laravel application and got following error messages:

 [Illuminate\Database\QueryException]                                                                                            
  could not find driver (SQL: select * from information_schema.tables where table_schema = lextern and table_name = migrations) 

  [PDOException]         
  could not find driver 

Connection:

DB_CONNECTION=mysql
DB_HOST=db_ip
DB_PORT=3306
DB_DATABASE=lextern
DB_USERNAME=lextern_root
DB_PASSWORD=db_pw

If I do that from localhost then it works...

I don't installed mysql on the server, but wish to connect with external DB, do I have to setup still something on my server?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire