简体   繁体   中英

Laravel 5.2 PHP 7.0.8 Upgrade Issue

I am working on a Laravel 5.2 environment and after some tests I decided to upgrade my PHP version from PHP 5.6.* to 7.0.8 over Ubuntu.

So, I did it by using phpbrew and now php artisan migrate is not working anymore:

[PDOException]
could not find driver

Maybe I should try a downgrade to PHP 5.6 again, or rollback. So, any suggestions?

The only solution that worked for me so far is to disable MYSQL strict mode.

I've gone through this link and added the below line on my.cnf.

[mysqld]
sql_mode=''

I don't know if this is a good solution but it helped me to get going.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM