Ik probeer mijn Laravel applicatie te feature testen via CI. Alpine kan echter alleen niet de juiste MySQL PHP driver vinden:
Ik probeer de juiste drivers te installeren:
Dit geeft echter dezelfde error.
Ik zie dat er een php-mysql driver beschikbaar is in alpine: https://pkgs.alpinelinux.org/package/v3.3/main/x86/php-mysql
Wanneer ik dit echter probeer te installeren:
Kan ik deze op een of andere manier toevoegen, zodat apk 'm ziet?
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
| $ 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:712 708▕ // If an exception occurs when attempting to run a query, we'll format the error 709▕ // message to include the bindings with SQL, which will make this exception a 710▕ // lot more helpful to the developer instead of just the database's errors. 711▕ catch (Exception $e) { ➜ 712▕ throw new QueryException( 713▕ $query, $this->prepareBindings($bindings), $e 714▕ ); 715▕ } 716▕ } +33 vendor frames |
Ik probeer de juiste drivers te installeren:
code:
1
| apk add php8-mysqli php8-pdo_mysql php8-mysqlnd |
Dit geeft echter dezelfde error.
Ik zie dat er een php-mysql driver beschikbaar is in alpine: https://pkgs.alpinelinux.org/package/v3.3/main/x86/php-mysql
Wanneer ik dit echter probeer te installeren:
code:
1
| ERROR: unable to select packages: php-mysql (no such package) |
Kan ik deze op een of andere manier toevoegen, zodat apk 'm ziet?