- Home
- Forum
- React - EJ 2
- Connect to MySql server to populate grid in React on Node
Connect to MySql server to populate grid in React on Node
Hi,
I have searched all the documentation and the forums and am still stuck. All the examples seem to be for other languages or frameworks.
I would like to see a simple example (select * from Northwind) that shows:
- How to connect to MySQL server (running on a local machine)
- How to retrieve data (insert and update would be great too).
- How to show data in a grid.
I have two use cases,..
- In a traditional, basic, react app.
- In an electron-react app.
My editor environment is VS Code on Win64.
Thanks!
SIGN IN To post a reply.
4 Replies
MS
Manivel Sellamuthu
Syncfusion Team
January 5, 2021 08:34 AM UTC
Hi Suresh,
Greetings from Syncfusion support.
We have already discussed about this in our Knowledge Base. Please refer the below KB link for more information.
Please let us know, if you need further assistance.
Regards,
Manivel
ST
Sonia tekniko
January 5, 2021 09:34 AM UTC
Mobile app development company in Noida-Hire best mobile app developers for your mobile apps at cost effective price.
SU
Suresh
January 5, 2021 03:51 PM UTC
Thank you for the quick follow up.
Unfortunately, your solution requires a C# intermediary. There are great, pure javascript node libraries, like mysql, mysql2, and others. I was hoping that someone had created an adaptor for them, so we could have a pure node solution.
If you are a node-Javascript developer, you don't want to be having/managing a seperate C# code base and server...
For a cross platform project (electron) it's even more of a problem.
s.
MS
Manivel Sellamuthu
Syncfusion Team
January 6, 2021 01:44 PM UTC
Hi Suresh,
Thanks for your update.
Based on your requirement, We have prepared a sample. In that sample we have used node JS Server and used custom binding for performing CRUD operations. Please find the below sample and documentation links for more information.
Note: Before launching the above application, the express server needs to be started using the ‘node server.js’ command from the application’s root folder and then the react application can be launched using ‘npm start’ command
Please let us know, if you need further assistance.
Regards,
Manivel
SIGN IN To post a reply.
- 4 Replies
- 3 Participants
-
SU Suresh
- Jan 4, 2021 06:48 PM UTC
- Jan 6, 2021 01:44 PM UTC