简体   繁体   English

Laravel 5.2 PHP 7.0.8升级问题

[英]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. 我正在Laravel 5.2环境中工作,经过一些测试后,我决定通过Ubuntu将PHP版本从PHP 5.6。*升级到7.0.8。

So, I did it by using phpbrew and now php artisan migrate is not working anymore: 因此,我通过使用phpbrew做到了 ,现在php artisan migrate migration不再起作用了:

[PDOException] [PDOException]
could not find driver 找不到驱动程序

Maybe I should try a downgrade to PHP 5.6 again, or rollback. 也许我应该再次尝试降级到PHP 5.6或回滚。 So, any suggestions? 那么,有什么建议吗?

The only solution that worked for me so far is to disable MYSQL strict mode. 到目前为止,对我而言唯一有效的解决方案是禁用MYSQL严格模式。

I've gone through this link and added the below line on my.cnf. 我浏览了此链接,并在my.cnf上添加了以下行。

[mysqld]
sql_mode=''

I don't know if this is a good solution but it helped me to get going. 我不知道这是否是一个好的解决方案,但它帮助我成功了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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