sprintcube / docker-compose-lamp

A basic LAMP stack environment built using Docker Compose.
MIT License
2.54k stars 1.39k forks source link

[BUG] mysqli_sql_exception: No such file or directory #269

Closed guiperalta closed 3 months ago

guiperalta commented 3 months ago

Describe the bug mysqli_sql_exception message "no such file or directory" as if mysqli is not installed but phpinfo() says it is enabled.

which Branch / PHP Version are you using ? php83

Steps to reproduce Steps to reproduce the behavior: run mysqli_connect()

Screenshots

( ! ) Fatal error: Uncaught mysqli_sql_exception: No such file or directory in /var/www/html/includes/config.php on line 187
( ! ) mysqli_sql_exception: No such file or directory in /var/www/html/includes/config.php on line 187
Call Stack
#   Time    Memory  Function    Location
1   0.0008  593672  {main}( )   .../index.php:0
2   0.0016  657960  include( '/var/www/html/includes/config.php )   .../index.php:2
3   0.0021  671248  [mysqli_connect](http://www.php.net/function.mysqli-connect)( $hostname = 'localhost', $username = 'docker', $password = '[Sensitive Parameter]' )  .../config.php:187

Desktop (please complete the following information):

guiperalta commented 3 months ago

it was a problem with my machine, sorry