Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which MySQL database tables contain the data for the stores in Magento 1.x?

I would like to retrieve the following data via MySQL for each store, so that I can build a data structure in my PHP code:

READ in from MySQL:
  3. all active stores:
     3.1 store package (enterprise)  
     3.2 magento default theme (default)        
     3.3 store default theme  
     3.4 store layout
     3.5 store templates 

I tried to do a diff before changing admin data for a store, but the memory limit was reached when comparing the 2 MySQL dump files before and after the change.

like image 692
Tommy Cox Green Avatar asked Feb 01 '11 16:02

Tommy Cox Green


People also ask

How to store customer database in Magento?

Customer database in Magento is stored under EAV model includes some following tables: Of which, the table customer_entity is the one storing. Customer_entity table is where to store main information about customer including following fields:

How many tables does Magento generate?

Although this offers a great starting point, most Magento instances generate tens if not hundreds of additional tables which can provide critical insight into the performance of your business. Below is a list of some of the more common tables that MBI customers utilize.

How many catalog categories are there in Magento 2?

Catalog Categories are EAV Entity, There are following below 6 Catalog Categories Entity Tables, where Category details are stored. Which Magento 2 database table store customer’s shipping and billing address

What is the catalog_product_entity table in Magento?

This table indexes the catalog_category_entity table (which holds category-level details) and the catalog_product_entity table (which holds product-level details). Each row in the catalog_product_entity table represents a specific product. This includes when that product was created in your Magento account and its SKU.


1 Answers

Store information can be found in

select * from core_store

Changes from the current design can be found in

SELECT * FROM design_change

Package/theme/layout information is configuration, and can be found in

select * from core_config_data

If a value isn't set for a configuration item, there won't be a value in this table. Default configuration values are kept in each module's config.xml, under the <default /> node.

At the risk of shilling (it's my product), a tool like Commerce Bug can quickly list out the collection objects Magento uses to fetch these in the admin, which can quickly point the way toward the database tables you need.

like image 172
Alan Storm Avatar answered Oct 15 '22 14:10

Alan Storm