Is it possible to connect an Excel with a MySQL Database

Viewed 31

I am currently working on an Excel where data is entered, that should end up in a database. I already wrote a code to validate the entered data, now I am looking for a way to connect the excel-sheet directly with the database.

One more simple way is to save the data as CSV and then read it in by Python code. But is there a way to import the data directly from excel to the database?

Is it possible to connect it by Excel VBA or python? Do you have any other ideas?

Thank you for your ideas/ help!

1 Answers

Wouldn't you be able to achieve this by setting up a rest API that actually does the crud option on your database and just hit the API from your excel using a vba script.

This answer could provide reference to how the API can be hit from the Excel file and as for the restAPI that you use to complete the CRUD operations, you could possibly set up a simple django backend. This is pure theory since I have never used VBA but with the above references it should be possible

Related