2

Mysqli functions do not work for me, example:

<?php
   $con = mysqli_init();
?>

Fatal error: Uncaught Error: Call to undefined function mysqli_init() in /var/www/html/public_html/test.php:2 Stack trace: #0 {main} thrown in /var/www/html/public_html/test.php on line 2

Everywhere it is recommended to execute this command inside the container:

docker-php-ext-install mysqli pdo pdo_mysql && docker-php-ext-enable pdo_mysql

I did it, but it does not help. What more can be done?

Dobriachok
  • 41
  • 1
  • 3
  • More info is needed. Perhaps if you posted a Dockerfile or some kind of docker-compose.yml file then one can see if something is wrong in those areas. https://stackoverflow.com/questions/41490669/docker-fails-to-install-php-mysql-extension/46798563 – Casey Harrils Apr 08 '20 at 05:51

0 Answers0