LARAVEL MIGRATE PDOEXCEPTION COULD NOT FIND DRIVER

You are missing a PDO driver. Sign up using Email and Password. If you are using Laravel 5. I followed the instructions from here and did:. Welcome to Server Fault! I used generators and created my migrations. By clicking “Post Your Answer”, you acknowledge that you have read our updated terms of service , privacy policy and cookie policy , and that your continued use of the website is subject to these policies.

Uploader: Dailmaran
Date Added: 4 December 2004
File Size: 41.70 Mb
Operating Systems: Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X
Downloads: 68314
Price: Free* [*Free Regsitration Required]

I have a bad experience while installing laravel.

Sign up using Facebook. Data is being fetched perfectly from the mysql tables. You can use sudo apt-get install php7-mysql or sudo apt-get install php5-mysql or sudo apt-get install php-mysql This worked for me. Welcome to Server Fault! Please sign in or create an account to participate in this conversation.

Home Questions Tags Users Unanswered. Do i need to reinstall mysql?

php artisan migrate : PDOException could not find driver

Noh us to email you occasionally with Laracasts news? Vamshi Vangapally 4 12 If not then you will need to amend your php.

  MARVELL 88SE61XX SATA RAID CONTROLLER DRIVER

Look at your phpinfo if the driver is enabled. Sign up using Facebook. Use Markdown with GitHub-flavored code blocks. Sagar Koshti 31 3. It turns out I needed the PDO extension on my local machine, not the vagrant box sudo apt-get install php5-mysql Following that we need to adjust our.

php artisan migrate "[PDOException] could not find driver" problem

Thach Van 7 8. Did you know that, in addition to the forum, Laracasts includes well over lessons on modern web development? Server Fault works best with JavaScript enabled.

Fixed pdoexcepfion issue while trying to run phpunit on the main Laravel Framework. By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service.

You only need to use your installed PHP version, mine is 7. All for the price of one lunch out per month.

php artisan migrate “[PDOException] could not find driver” problem

Have you restarted the webserver after making the appropriate changes to the PHP ini file? Mlgrate usually lives in the same directory as the PHP exe but thats on windows, not sure where it would be on a mac.

  DB2 UDB DRIVER DOWNLOAD

This worked with me: Had the same issue and just figured, website is running under MAMP’s php, but when you call in command, it runs mac’s if no bash path modified. Sign up or log in Sign up using Google. In my case, after updating my php version from 5.

On running php artisan migrate command, it shows:. I think you missed the mysql driver for php5. This installed sqlite for php5, then I ran the php artisan migrate command again and worked perfectly.

php artisan migrate gives me an error could not find driver

I had installed mysql and php artisan migrate worked after i changed that line to this:. Post as a guest Name. I found the proper solution for this error!

Author: admin