
استاد ارور قبلی رو درست کردم ولی ارور جدیدی دارم
بعد از ساخت دیتابیس و وارد کردنش تو فایل .env وقتی دستور php artisan migrate --seed میزنم با این ارور رو به رو میشم و ازونجایی که دانش php ندارم نمیتونم بفهمم چیه مشکل
ارور:
Illuminate\Database\QueryException
could not find driver (SQL: select * from information_schema.tables where table_schema = nuxt-auth and table_name = migrations and table_type = 'BASE TABLE')
at C:\Users\nik\Downloads\exercies_file_nuxtjs_part_31\vendor\laravel\framework\src\Illuminate\Database\Connection.php:760
756▕ // If an exception occurs when attempting to run a query, we'll format the error
757▕ // message to include the bindings with SQL, which will make this exception a
758▕ // lot more helpful to the developer instead of just the database's errors.
759▕ catch (Exception $e) {
➜ 760▕ throw new QueryException(
761▕ $query, $this->prepareBindings($bindings), $e
762▕ );
763▕ }
764▕ }
1 C:\Users\nik\Downloads\exercies_file_nuxtjs_part_31\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:70
PDOException::("could not find driver")
2 C:\Users\nik\Downloads\exercies_file_nuxtjs_part_31\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:70
PDO::__construct()
nikkhanpour
خسته نباشید استاد
همه ی کار هارو دقیقا مثل ویدیو انجام دادم و کلی هم سرچ کردم راجع بهش ولی راهکارها هیچ کدوم جواب نداد
مثلا توی php.ini اکستنشن های مربوط به pdo رو گذاشتم و حتی بعضی جاها میگفتن توی خود فایل xammp/php/php.ini هم اضافه کن و کردم ولی بازم همون ارور
احتمال داره از ورژن php باشه؟ ورژن xampp همون 8.1.12 هست
علی شیخ
4 ماه پیش
ببینید ورژن php همین ورژنی هست که باید نصب کنید و توی ویدیو گفته شده
یکبار xampp هم پاک و دوباره نصب و تست کنید.
روی یک سیستم دیگه هم تست کنید.