Epicor MySQL Compass Import - Margin Master

Margin Master Handbook

Introduction
Part I · Installing
Part II · Introducing the Main Window
Part III · Initial Configuration
Part IV · Customizing the Workspace
Part V · Basic Application Functionality
Part VI · Learning Margin Master
Part VII · Advanced Topics
Part VIII · Updates, Troubleshooting & Help
Appendix
Part III · Chapter 7 — Point of Sale: Connect, Configure, Import, TroubleshootUpdated 2026-06-17

Epicor MySQL Compass Import

What is this?

The Epicor MySQL Compass import reads inventory data from a MySQL Compass data warehouse running on your local network and loads it into Margin Master for pricing analysis. This is an alternative to the Epicor FTP import for stores that have a Compass data warehouse available. It supports both Ace Hardware/Emery Jensen and Do it Best vendor pairing.

Import File Format

MySQL Compass does not use a file. Margin Master connects directly to the MySQL database on your local network.

  • Database: MySQL (typically on your local network)
  • Default server: Usually 10.192.255.x on port 3306
  • Database name: EAGLEDW
  • Source table: IN (inside the EAGLEDW database)
  • User: dbread (read-only access)
  • Total columns: 78 fields read from the IN table

Key Fields

Field Description
in_sku Item SKU number
in_store Store identifier (single character)
in_dept Department code
in_class Class code
in_desc Primary item description
in_desc2 Secondary item description
in_retail Current retail price
in_cost Item cost
in_repl_cost Replacement cost
in_oh Current inventory quantity
in_pgrp Product group code
in_h0 through in_h12 Monthly sales history (13 periods)
in_velo Sales velocity code
in_pvend Primary vendor code
in_avend Alternate vendor code
in_db_update_datetime Last update timestamp (used for incremental sync)

How Import Works

Epicor tab in MySQL / Compass mode

  1. Connect via MySQL / Compass - checked.

  2. MySQL Connection - Server, Port, Database, Username, Password, Auth/SSL and Prime Vendor.

  3. Compass Options.

  4. Test & Save Connection / Troubleshoot Connection...

  5. Restore from Cloud... / Reset to Defaults.

  6. Open Store Manager...

  7. Margin Master connects to the MySQL Compass data warehouse on your local network using the server, port, database, and credentials configured in Options.

  8. On the first import, all rows are downloaded. On subsequent imports, only rows changed since the last sync are downloaded (incremental sync based on in_db_update_datetime).

  9. Downloaded rows are bulk-merged into the local Compass_IN staging table.

  10. Store filtering matches each store's character to the Vendor Store # you assigned in Store Manager, using the store character's ordinal (WHERE ORD(in_store) = <store ordinal>).

  11. For each store, a SQL MERGE operation updates the per-store main table with the latest data.

  12. Vendor-specific enrichment is applied based on your vendor configuration:

    • Ace Hardware / Emery Jensen: Catalog data, zone pricing, and MAP pricing from Ace cloud data.
    • Do it Best: Vendor data, RSC codes, and unit-of-measure scaling from Do it Best cloud data.
  13. Ace Direct SKU handling: items with SKU numbers ending in "D" have the suffix stripped to match Ace catalog records.

  14. SKU reconciliation removes any local rows for items that no longer exist in the MySQL source (if enabled).

Field Mapping

MySQL Compass Field Margin Master Field
in_sku SKU
in_store StoreNumber (character to numeric)
in_dept Dept
in_class Class
in_desc Description
in_desc2 Description2
in_retail CurrentPrice
in_cost COST
in_repl_cost ReplacementCost
in_oh OnHand
in_pgrp ProductGroup
in_h0 through in_h12 History0-History12
in_velo sVelocity
in_pvend PrimeVendor
in_avend AVendor

Tips

Incremental sync saves time. After the first full import, only changed rows are downloaded. This makes subsequent imports much faster, especially for large inventories.

MySQL connection settings are in Options. Go to Options, then the Epicor tab and check Connect via MySQL / Compass to configure your MySQL server address, port, database name, and credentials.

Store configuration is required. Each store must be matched to a Vendor Store # in Store Manager before its data can be imported. A store with no Vendor Store # (a Needs Setup badge) imports 0 SKUs. If a store imports nothing, see Troubleshooting: Epicor Import Brought In 0 SKUs.

SKU reconciliation is optional. The ReconcileMySqlDeletedSkus setting controls whether Margin Master removes local rows for items deleted from the MySQL source. Enable this to keep your data clean, but be aware it will remove any locally-added items.

Works with both Ace and Do it Best. Unlike the FTP import (Ace only), MySQL Compass import supports both Ace Hardware/Emery Jensen and Do it Best vendor data, depending on your store configuration.

Common Questions

Q: What is the difference between FTP and MySQL Compass import? A: FTP downloads a binary file directly from the Eagle server. MySQL Compass reads from a local MySQL data warehouse. Both provide the same inventory data. Use MySQL Compass if your store has a Compass data warehouse on the local network.

Q: Why does the first import take longer? A: The first import downloads all rows from the MySQL database. Subsequent imports only download rows that have changed since the last sync, making them much faster.

Q: What vendor data can I use with MySQL Compass? A: MySQL Compass supports both Ace Hardware/Emery Jensen and Do it Best vendor pairing. The vendor enrichment applied depends on your store's vendor configuration.

Q: What happens if an item is deleted from Epicor? A: If the ReconcileMySqlDeletedSkus setting is enabled, Margin Master will detect items that no longer exist in the MySQL source and remove them from your local main tables during reconciliation.

Q: What are the key settings for MySQL Compass? A: The main settings are UseMySqlCompass (enable/disable), MySqlServer (server address), MySqlPort (default 3306), and MySqlDatabase (default EAGLEDW). These are configured in the Options window.

Connect with us

Margin Master by RetailerSoft, Inc. © 2026. All rights reserved.

Loading...

Reconnecting to the server...

This usually takes a few seconds.