#Problem with migration

36 messages · Page 1 of 1 (latest)

full rune
upbeat sand
#

Looks like you need to enable the mysql pdo driver extension

upbeat sand
#

Yes

full rune
#

seems something else is fuking everything

upbeat sand
#

The error message is quite explicit, pdo is unable to load the driver. Make sure you edited the correct php.ini file. There are different files for cli and web

long dome
full rune
upbeat sand
#

run php --ini to verify what config file is being loaded in your cli

full rune
#

Loaded Configuration File: C:\Program Files\php\php.ini

#

edited this one

upbeat sand
#

Did you make any changes to config/database.php?

full rune
#

Nope

#

everything is fresh

upbeat sand
#

This is gonna sound silly but it has happened before - are you absolutely sure you saved the ini file after editing it?

full rune
#

Yes. Im usualy spamming ctrl+s

#

but also tried to close and recheck

#

all my steps:
1.composer create-project laravel/laravel av
2.Edited .env database info
3.composer require laravel/jetstream
4.npm install
5.npm run build
6.php artisan migrate
and then error appears

upbeat sand
#

run php -m and verify you see pdo_mysql on the list

full rune
#

I see just PDO

upbeat sand
#

Then the module isn't loaded

#

does phpenmod work on windows? Try phpenmod pdo_mysql

full rune
#

nop it doesnt

upbeat sand
#

Are there any other ini files in php --ini?

full rune
#

Nope

upbeat sand
#

right, windows

full rune
#

tried same steps again and nothing changed

upbeat sand
#

does xampp have a GUI where you can enable php mods like laragon does?

full rune
#

tbh have no clue

#

lemme see

#

seems not

upbeat sand
#

the issue is easy to identify (you're missing the pdo_mysql extension) but I have no clue what you need to do other than just enabling it in the php.ini. ¯_(ツ)_/¯

full rune
#

sad 😄

#

k will randomly edit things and see if smth helps

full rune
#

shouldn't I restart my pc when I change something in that php.ini?