I am working on nginx server which is not in my local machine. I have mysql workbench where i store database. I have a database in my mysql workbench. In laravel when i run the command php artisan migrate to connect with the database, i get the following error:
[Illuminate\Database\QueryException]
could not find driver (SQL: select * from information_schema.tables where table_schema = database_name and table_name = migrations)
[PDOException]
could not find driver
My .env file is like the following:
APP_ENV=local
APP_KEY=applicaion_key
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=host address of mysql server
DB_CONNECTION=mysql
DB_HOST=ip address of the host of mysql workbench
DB_PORT=3306 //
DB_DATABASE=database_name
DB_USERNAME=username
DB_PASSWORD=mysql workbench password