We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

shopify apps: how to install mysql in shopify react and php app and get table data from mysql table

shopify apps: how to install mysql in shopify react and php app and get table data from mysql table

nihal
Shopify Partner
6 0 0

Hey guys, im working on a shopify app with react and php template, in default sqllite came with the installation but i want to install mysql and get data from a table from my database.

1) how to install mysql instead of sqlite?
2) how to create connection and get data from table in php controller.

 

 

 

Replies 4 (4)

product_options
Excursionist
23 5 4

Are you using this template https://github.com/Shopify/shopify-app-template-php/.

Or any other, please specify, then can suggest the required changes to be make to connect with MySql instead sqlite

Product Options Add unlimited product options using an easy-to-use drag-and-drop form builder
nihal
Shopify Partner
6 0 0

yes im using this package

BrainStation23
Shopify Partner
416 62 64

Hello,

You can use this package instead of SQLite one https://www.npmjs.com/package/@link-hooks/shopify-app-session-storage-mysql

Configure the configuration accordingly for MYSQL

Brain Station 23 PLC (Mail: js.sbu@brainstation-23.com)
- Was your question answered? Mark it as an Accepted Solution
- Did the solution not address your concern? We kindly request that share or mail your store URL with us this will enable us to collaborate more closely.
- Explore our Shopify public apps
nihal
Shopify Partner
6 0 0

ok, after using this package, how can i use this to add, update records in  db ?