Ankit Mishra Posted December 11, 2023 Share Posted December 11, 2023 Hi team, I had tried multiple times to install the PrestaShop installation using CLI. On following the instructions shared in the documentation, we got stuck on an issue with stats that PrestaShopException: Link to database cannot be established: SQLSTATE[HY000] [2002] No such file or directory in /opt/lampp/htdocs/smartbuck/classes/db/DbPDO.php:119 The command that we had tried, php index_cli.php --domain=localhost --db_server=localhost --db_name=smartbucket --db_user=root --d b_password= --mailto:[email protected] –password=12345678; Here is the complete log of the error PHP Warning: PHP Startup: Unable to load dynamic library 'mysqli' (tried: /usr/lib/php/20210902/mysqli (/usr/lib/php/20210902/mysqli: cannot open shared object file: No such file or directory), /usr/lib/php/20210902/mysqli.so (/usr/lib/php/20210902/mysqli.so: undefined symbol: mysqlnd_global_stats)) in Unknown on line 0 PrestaShopException: Link to database cannot be established: SQLSTATE[HY000] [2002] No such file or directory in /opt/lampp/htdocs/smartbuck/classes/db/DbPDO.php:119 Stack trace: #0 /opt/lampp/htdocs/smartbuck/classes/db/Db.php(331): DbPDOCore->connect() #1 /opt/lampp/htdocs/smartbuck/classes/db/Db.php(241): DbCore->__construct() #2 /opt/lampp/htdocs/smartbuck/src/PrestaShopBundle/Translation/Loader/SqlTranslationLoader.php(64): DbCore::getInstance() #3 /opt/lampp/htdocs/smartbuck/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php(436): PrestaShopBundle\Translation\Loader\SqlTranslationLoader->load() #4 /opt/lampp/htdocs/smartbuck/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php(131): Symfony\Component\Translation\Translator->doLoadCatalogue() #5 /opt/lampp/htdocs/smartbuck/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php(328): Symfony\Bundle\FrameworkBundle\Translation\Translator->doLoadCatalogue() #6 /opt/lampp/htdocs/smartbuck/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php(123): Symfony\Component\Translation\Translator->initializeCatalogue() #7 /opt/lampp/htdocs/smartbuck/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php(447): Symfony\Bundle\FrameworkBundle\Translation\Translator->initializeCatalogue() #8 /opt/lampp/htdocs/smartbuck/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php(334): Symfony\Component\Translation\Translator->loadFallbackCatalogues() #9 /opt/lampp/htdocs/smartbuck/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php(123): Symfony\Component\Translation\Translator->initializeCatalogue() #10 /opt/lampp/htdocs/smartbuck/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php(362): Symfony\Bundle\FrameworkBundle\Translation\Translator->initializeCatalogue() #11 /opt/lampp/htdocs/smartbuck/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php(347): Symfony\Component\Translation\Translator->dumpCatalogue() #12 /opt/lampp/htdocs/smartbuck/vendor/symfony/symfony/src/Symfony/Component/Config/ResourceCheckerConfigCacheFactory.php(43): Symfony\Component\Translation\Translator->Symfony\Component\Translation\{closure}() #13 /opt/lampp/htdocs/smartbuck/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php(348): Symfony\Component\Config\ResourceCheckerConfigCacheFactory->cache() #14 /opt/lampp/htdocs/smartbuck/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php(316): Symfony\Component\Translation\Translator->initializeCacheCatalogue() #15 /opt/lampp/htdocs/smartbuck/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php(292): Symfony\Component\Translation\Translator->loadCatalogue() #16 /opt/lampp/htdocs/smartbuck/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php(223): Symfony\Component\Translation\Translator->getCatalogue() #17 /opt/lampp/htdocs/smartbuck/src/PrestaShopBundle/Translation/PrestaShopTranslatorTrait.php(70): Symfony\Component\Translation\Translator->trans() #18 /opt/lampp/htdocs/smartbuck/src/PrestaShopBundle/Install/Database.php(98): PrestaShopBundle\Translation\Translator->trans() #19 /opt/lampp/htdocs/smartbuck/install/controllers/console/process.php(140): PrestaShopBundle\Install\Database->testDatabaseSettings() #20 /opt/lampp/htdocs/smartbuck/install/classes/controllerConsole.php(139): InstallControllerConsoleProcess->process() #21 /opt/lampp/htdocs/smartbuck/install/index_cli.php(71): InstallControllerConsole::execute() Can you please look into it Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now