🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Home Add-ons Mysql Db
Premium Integration

Gravity Forms
+ Mysql Db

Write every Gravity Forms entry as a row into your own MySQL or MariaDB database. Map fields to columns or create the table from the form, insert or update on a key, and retry later when the database is down.

User User User User
+2k
4.9/5
Trusted by 2,000+ Agencies
Mysql Db

Core Features

Real database writes: every entry becomes a row in your own MySQL or MariaDB database, over the standard client connection (mysqli), with no middleware fees.
Connection settings: host, port, database, user and password, with the password stored encrypted, an SSL/TLS option and a Test connection button.
Map Any Field: choose the column for each form field, entry detail or custom value with merge tags, or let the add-on create the table and columns from the form.
Insert or Update: add a row for every entry, or update the row with the same key (upsert on a UNIQUE or PRIMARY column).
No Double Rows: an optional entry reference column with a UNIQUE index makes sure the same entry is never inserted twice, even when a send is repeated.
Never Blocks the Form: rows are written in the background and tried again later, after 1 minute, 5 minutes, 30 minutes, 2 hours and 12 hours, when your database is down.
Send Old Entries: a bulk action in the entry list writes past entries and skips the ones already sent.
Conditional logic: write only the entries that match your rules, and use several feeds per form.
SQL Injection Safe: values are bound parameters of prepared statements, and table and column names are always escaped.

What does it do?

Write Gravity Forms Entries Straight into MySQL or MariaDB

Reporting tools, client portals, ERP systems and legacy applications often read from a MySQL database, while form entries live inside WordPress. The Gravity Forms MySQL Database Integration Premium Add-on writes each entry you choose as a row into a table of your own database, on the same server or on another one.

Connect Your Own Database

Enter the host, port, database name, user and password once in the add-on settings. The password is stored encrypted, never shown again, and never written into entry notes. Turn on the encrypted connection (SSL/TLS) for a database on another server and use Test connection to see the server version and whether the link is encrypted before you save a single feed.

Map Fields to Columns, or Create the Table

Pick the column for every form field, entry detail (entry ID, date created, source URL, payment status and more) or custom value with merge tags. Or tick one box and the add-on creates the table and adds a column for each new form field. Existing columns are never changed or removed. Numbers, dates and times are converted for the real type of each column.

Insert, or Update on a Key

Insert a new row for every entry, or update the row that has the same key. An optional entry reference column with a UNIQUE index guarantees that one entry is never inserted twice.

Safe for Your Form and Your Data

Writes run in the background, so visitors never wait for your database. If the database is down, the add-on tries again later, and an entry note tells you what happened. Every value is sent as a parameter of a prepared statement and every name is escaped, so a field label or an answer cannot change the SQL. Use the entry list to send past entries in bulk, and conditional logic to write only the entries you need.

How does it work?

The add-on processes each entry in five steps:

  1. Form Submission: the add-on runs as a Gravity Forms feed add-on after the entry is saved. It queues the write and returns at once.
  2. Conditions: the feed condition decides whether the entry is written.
  3. Row: the mapped fields are converted for the real type of each column of your table.
  4. Write: the add-on connects with mysqli, checks the table (and creates it or adds columns if you allowed it) and runs one prepared INSERT, or INSERT with update on the key.
  5. Result: an entry note says whether the row was inserted, updated or already there, or gives the database message. A database that is down is tried again later.

Interface Previews

Screenshot
Screenshot
Screenshot

How do I enable this?

1
Install and activate the add-on, then enter your Gravity Extra licence key under Forms, Settings, MySQL DB Add-On.
2
Enter the host, port, database, user and password of your MySQL or MariaDB server, choose the encrypted connection if the database is on another server, click Test connection and save.
3
Open a form, go to Settings, MySQL DB Add-On and add a feed: choose the table and the module (Insert Row or Insert or update).
4
Map the form fields to the columns, or choose to build the columns from the form and tick Create the table and add new columns.
5
Optionally add a key column or an entry reference column, and an Enable Condition, then save. Submit the form and check the table, or send old entries from the entry list.

Customer Reviews

Submit your review
1
2
3
4
5
Submit
     
Cancel

Create your own review

Have a new Feature idea?

Didn't see a feature in our plugin that you think would be useful? Share with us and let the team be a part of it.

Submit a Feature Request
$59
$39/year
You Save $20
All-Access PassNeed several add‑ons? Get all 839 Gravity Forms add‑ons with All-Access: $249/year for 10 sites.See the pass →
Add any 2nd item, get 30% OFF both!
Use code GFEX30 at checkout
Secure checkout via Stripe
Get it in the Workflow & Data Suite — from $49/year98 add-ons, one key. See what is included →
What's Included
  • Automatic Yearly Renewal
  • 1 Year Free Support & Updates (Renewable)
  • 24x7 Dedicated Customer Care
24/7 Support
For any query, connect with us on our support portal.
Submit a Query →
Quick Info
Version 2.0.1
Changelog
Icon
Gravity Forms Mysql Db
10 people are viewing this

Wait! Don't leave
empty-handed 🎁

Grab these exclusive codes to use at checkout!

10% OFF On all products
GFEX10
30% OFF Best Value
On any 2+ items
GFEX30

No thanks, I'll pay full price

Someone just bought this A few seconds ago
0
0
Your Cart
Your cart is emptyReturn to Shop