ERROR: MySQL connection failed: Class Magento\Framework\DB\Logger\FileFactory does not exist

Created by Nicole Le, Modified on Tue, 14 Aug 2018 at 04:31 PM by Nicole Le


Issue

After installing, I encountered this error

Errors:

[2018-08-02 13:26:36] main.ERROR: MySQL connection failed: Class Magento\Framework\DB\Logger\FileFactory does not exist [] []


[2018-08-02 13:20:52] main.CRITICAL: Can't create directory /opt/bitnami/apps/magento/htdocs/generated/code/Magento/Framework/App/Http/. in [Magento\Framework\App\Http\Interceptor] {"exception":"[object] (RuntimeException(code: 0): Can't create directory /opt/bitnami/apps/magento/htdocs/generated/code/Magento/Framework/App/Http/. in [Magento\\Framework\\App\\Http\\Interceptor] at /opt/bitnami/apps/magento/htdocs/vendor/magento/framework/Code/Generator.php:115)"} []


Solution

We assume the issue from permission.

You should reset the owner permission of folders by running this command after deploy

chmod -R 777 generated var/cache pub/static/


If you need any further assistance, please feel free to contact us.

Please visit our site for more useful Magento 2 Extensions: https://bsscommerce.com/magento-2-extensions.html

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article