it is possible but it is not easy, we don’t currently have a trigger for Google sheets so a couple of options would be to use a google app script to post to a webhook that n8n picks up on any changes or on a schedule read the entire sheet and the database and work out what is missing / added using a couple of merge nodes.
That will make it trickier but you can run a schedule every minute, You would just need to make sure that the data you have can be processed and checked within that 60 second window to avoid any possible conflicts.
Does it have to be a Google Sheet or could something like Airtable or Baserow be an option?
What we want is whatever changes happens in google sheet will also be updated in mysql table. We need to check it probably every 10 minutes on a realtime basis.
What I have rather in mind is [cron - every 10 minutes] → [empty mySQL table] → [read all data from gsheet] → [map data from gsheet] → [insert all data to MySQL table]
Yeah that would be possible, It is not much different from the second workflow in the link. You would just need to start with a MySQL query to delete your database.
That is fine, How did you get on with building out that workflow? In theory it would be just as you have written it so as a basic structure you would want to start with something like the below, You would just need to work out what If statement to use to work out if you have data or not.