جشنواره عیدانه راکت | عضویت ویژه راکت برای آخرین بار | افزایش قیمت‌ها از سال جدید | و ...

مشاهده اطلاعات بیشتر...
ثانیه
دقیقه
ساعت
روز
ftp
4 سال پیش توسط ftp مطرح شد
1 پاسخ

ارور مایگریت کردن در لاراول

@ali.bayat
من هنگام اجرایphp artisan migrate با این ارور برخورد میکنم باید چیکار کنم

   Illuminate\Database\QueryException 
  could not find driver (SQL: select * from information_schema.tables where table_schema = laravel and table_name = migrations and table_type = 'BASE TABLE')
  at vendor/laravel/framework/src/Illuminate/Database/Connection.php:671
    667|         // If an exception occurs when attempting to run a query, we'll format the error
    668|         // message to include the bindings with SQL, which will make this exception a
    669|         // lot more helpful to the developer instead of just the database's errors.
    670|         catch (Exception $e) {
  > 671|             throw new QueryException(
    672|                 $query, $this->prepareBindings($bindings), $e
    673|             );
    674|         }
    675| 
      +34 vendor frames 
  35  artisan:37
      Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

ثبت پرسش جدید
مهدی عقیقی
تخصص : برنامه نویس وب
@MehdiAghighi 4 سال پیش آپدیت شد
0

سلام وقتتون بخیر.

من در سیستم لینوکسی خودم دستور

sudo apt-get install php-mysql

رو می‌زنم درست میشه.

اگر درست نشد یا این که ویندوز هست سیستمتون توی php.ini خط زیر رو uncomment کنید ( semicolon رو از اول خط بردارید ).

;extension=pdo_mysql.so

برای ارسال پاسخ لازم است وارد شده یا ثبت‌نام کنید

ورود یا ثبت‌نام