Uncaught Error Call to undefined function mysqli connect

0 votes

Hi Guys,

I have docker engine in my linux system. I am trying to launch php container in docker using docker-compose. But it shows me the below error.

Uncaught Error: Call to undefined function mysqli_connect
Apr 14, 2020 in Docker by akhtar
• 38,260 points
8,196 views

1 answer to this question.

0 votes

Hi@akhtar,

This error may occurred because “PHP mysqli plugin” is missing inside PHP’s Docker container. To install it, use the below given command inside PHP's container.

$ docker-php-ext-install mysqli  
$ docker-php-ext-enable mysqli

Hope this will help.

answered Apr 14, 2020 by MD
• 95,460 points
This is quite useful. Thanks.
Where I have to run this command? I don't know which PHP's container you are talking about. I have XAMPP and PHP installed and same error is coming to me also. Please help me and tell.

Related Questions In Docker

0 votes
1 answer

Error “unable to resolve host docker”

This error occurs because its not a ...READ MORE

answered Jul 10, 2018 in Docker by Kalgi
• 2,680 points
5,925 views
0 votes
1 answer

Docker error cannot delete docker container, conflict: unable to remove repository reference

First, remove the container names $ sudo docker ...READ MORE

answered Jul 31, 2018 in Docker by Kalgi
• 52,340 points
7,557 views
+2 votes
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
7,664 views
0 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP