Guides › Database reference › URLs and configuration
Magento 2 core_config_data table
Every setting changed under Stores › Configuration, per scope.
Key columns
| Column | What it means |
|---|---|
scope | default, websites or stores. |
scope_id | 0 for default, otherwise the website ID or store view ID. |
path | The setting's path, such as web/secure/base_url or general/locale/timezone. |
value | The saved value. Some are encrypted. |
updated_at | When it was last changed. |
Good to know
- Only changed settings are here. Defaults come from each module's
config.xml. - Values in
app/etc/env.phporapp/etc/config.phpwin over this table and lock the field in the admin. - It can hold API keys and passwords. Treat exports with care. AI Reports never reads this table.
Example: One setting across all scopes
Works on Magento Open Source and Adobe Commerce.
SELECT scope, scope_id, path, value, updated_at
FROM core_config_data
WHERE path = 'web/secure/base_url'
ORDER BY scope, scope_id;
Tested on Magento Open Source and Adobe Commerce 2.4.8. Read-only. If your tables have a prefix, add it to each table name.
This table has the same 6 columns on Magento Open Source and Adobe Commerce.
All 6 columns (Magento Open Source)
Show all columns
| Column | Type | Can be empty | Magento's description |
|---|---|---|---|
config_id | int(10) unsigned | Config ID | |
scope | varchar(8) | Config Scope | |
scope_id | int(11) | Config Scope ID | |
path | varchar(255) | Config Path | |
value | text | yes | Config Value |
updated_at | timestamp | Updated At |