dockerfiles icon indicating copy to clipboard operation
dockerfiles copied to clipboard

opencart database driver error

Open mesili opened this issue 6 years ago • 1 comments

Using https://github.com/vimagick/dockerfiles/tree/master/opencart

Running docker-compose with the given docker-compose.yml starts the containers but during the installation, we have Mysqli or PDO options for the database which are both not working :

Using mysqli

Warning: mysqli::__construct(): (HY000/2002): No such file or directory in /var/www/html/system/library/db/mysqli.php on line 7Warning: DB\MySQLi::__construct(): Couldn't fetch mysqli in /var/www/html/system/library/db/mysqli.php on line 10Warning: DB\MySQLi::__construct(): Couldn't fetch mysqli in /var/www/html/system/library/db/mysqli.php on line 10Notice: Undefined variable: mysql in /var/www/html/install/controller/install/step_3.php on line 280Notice: Trying to get property 'connect_error' of non-object in /var/www/html/install/controller/install/step_3.php on line 280

Using PDO

Failed to connect to database. Reason: 'could not find driver' 

mesili avatar Jun 22 '19 06:06 mesili

Same issue, i tried with hostname mysql as well but not working

azeemgujjar avatar Mar 02 '21 06:03 azeemgujjar