I am struggling to reindex or run any
editorial commands (apart changed to developer mode) via the CLI. From a feeling it could be an issue with permissions or connection between database and command files.
I get all the time get "error reports:
First line: "[Zend_Db_Adapter_Exception] SQLSTATE[HY000] No such file or directory" Second line:"[PDOException] SQLSTATE[HY000]  No such file or directory" As example: can check cache status (get list), but not flush it (get error above). With indexer no commands works (all brings error lines listed above), but if I place only "bin/magento indewer" in CLI then I get a listed command list: [InvalidArgumentException] Command "indexer" is not defined. Did you mean one of these? indexer:show-mode indexer:set-mode indexer:reindex indexer:status indexer:reset indexer:info
I am not a developer and relative new with Magento, could anyone help to find the issue cause and lead step by step to try solutions?
I tried by now:
chmod u+x bin/magento to give permissions to run some queries, but maybe its not enough level?
- installed magento via a "button" click on hosting company's website on php 5.6 with API
- I tried to check settings in
app\etc\env.php (for server status). All apart of key founded to prove and looks correct.
More about my previous ticket where we did not find a solution to reindex, but at least to call some commands out: