Database Drivers / and stuff? #345
Replies: 3 comments 1 reply
-
I literally woke up this morning and I thought - Mysqli is going to be a PHP extension - I think all i have to do is configure it to be enabled. |
Beta Was this translation helpful? Give feedback.
-
You probably want something like this in your Dockerfile: RUN docker-php-ext-install mysqli pdo pdo_mysql That will install and enable the relevant extensions. |
Beta Was this translation helpful? Give feedback.
-
If you haven't already have a look at https://github.com/openbenches/openbenches.org/blob/master/CONTRIBUTING.md which mentions some packages which are needed. |
Beta Was this translation helpful? Give feedback.
-
Hi @edent and OB community - I was wondering if you could help me out?
(I'm not a php guy - I have done stuff with php in the past)
I'm working on a docker file for #332, allowing a developer to clone the repo - run a docker-compose command, and get up and running for development.
I have it (i think) mostly working but when I try and set it up, I'm having to add some extra packages.
I added the recent composer.json file - and performed a
composer install
.I'm seeing this error in the console :
so - to get past that I ran a
composer require doctrine/orm
And now I get this error -
which I think is due to the DB Connection string - so I set that in line with the docs - and I get the same error.
I think based on the URL -
mysqli:
- but I can't figure out how to install it?I'll do more research - but was wondering if anyone had any idea about this?
Beta Was this translation helpful? Give feedback.
All reactions