laravel中ubuntu下执行php artisan migrate总是报错时间:2023-03-10 04:35:54 ubuntu14.0 + xampp + laravel5下 laravel中ubuntu下执行php artisan migrate总是报错: [PDOException] could not find driver 解决: 此时的php时默认使用系统的,应该改成自己的目录:/opt/lampp/bin/php artisan migrate,即可成功创建。