Here is an error that occurs when I run setup:install command on clean database magento2

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'clean.core_confi
g_data' doesn't exist

I added sequence

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    <module name="DevAll_Patches" >
            <module name="Magento_Config"/>

For my DataPatches but still couldn't fix an issue. what can be the problem?

  • Confirm this table is available into the database : core_config_data Commented Dec 17, 2021 at 4:20
  • If the issue comes from your custom module just try to disable it until the base setup has been made. Commented Dec 17, 2021 at 21:24

1 Answer 1


According to your error message, it seems that you Magento have installed but some database schema queries didn't get executed. Please check your database for the 'core_config_data' table. If not there create it manually or reinstall Magento2.

  • somewhere in the new code SET AREA CODE was used , that was the problem. thanks for the answer. Commented Jan 4, 2022 at 13:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.