Steps:
- Install node on the environment
- clone this repository https://github.com/devportolio/import-json-mysql.git
- Open the file import.js and edit this section based on your mysql credentials
const connection = mysql.createConnection({ host: "127.0.0.1", user: "root", password: "", database: "json_import" });
- Save the json file that you want to import inside the folder source
- Run this command to import the file