0

I tried to run php artisan migrate but I'm getting an error:

In Connection.php line 664: could not find driver (SQL: select * from information_schema.tables where table_schema = homestead and table_name = migration) In Connector.php line 67: could not find driver.

halfer
  • 19,824
  • 17
  • 99
  • 186
Wadar
  • 1
  • 4
  • Would you please share with us your **_.env_** file configurations so we can check whether it has anything to do with it?(Which is possibly the reason of why you are getting this error) – ndrwnaguib Dec 26 '17 at 22:58
  • DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=okeada DB_USERNAME=root DB_PASSWORD=null. That's database credentials on my .env file – Wadar Dec 26 '17 at 23:05
  • Which PHP version do you use? – ndrwnaguib Dec 26 '17 at 23:11
  • I'm using PHP 7.2.0 – Wadar Dec 26 '17 at 23:13
  • Are you sure that there is no conflict between the PHP that is used by Apache and the PHP that is linked to the command line? – ndrwnaguib Dec 26 '17 at 23:16
  • How do I know or detect if there's conflict. And there's any conflict, how do I solve the issue. Kindly assist I'm new in coding – Wadar Dec 26 '17 at 23:19
  • I will redirect to you to a similar issue. Please check the following [SO issue](https://stackoverflow.com/questions/42909397/laravel-5-4-on-php-7-0-pdo-exception-could-not-find-driver-mysqlc) – ndrwnaguib Dec 26 '17 at 23:20
  • which php doesn't run. It gives me: "which" is not defined. – Wadar Dec 26 '17 at 23:53
  • I tried to edit the php.ini on c://php/PHP.ini to look like c://wamp64/bin/php7/php.ini but I'm getting another error relating mbstring & openssl module – Wadar Dec 26 '17 at 23:58
  • Thanks for your responses but then I've not gotten any solution to the problem. As I said earlier, I'm very very new in coding plz assist me to do this right - I believe it's possible. Thanks & God bless – Wadar Dec 27 '17 at 05:52
  • Plz note that I'm using Windows 10 – Wadar Dec 27 '17 at 10:18

1 Answers1

-1

you should run this command , that's because cache

composer dumpautoload
Abdi
  • 589
  • 5
  • 16