A Node.js script to migrate MySQL data to KwilDB.
Open terminal/command prompt and follow any of the following methods.
Before you continue, ensure that you have Node.js installed on your system. See here for more instructions. If you have it installed, you can continue below.
- Clone project
git clone https://github.com/Mohd-Taqiuddin/MYSQL-to-Kwil-migration.git
- Change working directory
cd mysql-kwil-etl
- Install dependencies
npm install
- Copy private key from KwilDB and paste it in privateKey.json
- Copy your secret from KwilDb and paste it in lib/migrate.js (line 13) and also in src/lib/migrate.ts (if previous doesn't work)
- Make it happen 😉
npm run migrate
You will be prompted to enter authentication credentials for your MySQL database. Ensure that you have access credentials that have read/write roles enabled, or else you will encounter errors.
You should be ready to migrate your data now.
- Retrieve MySQL database models and data
- Generate Kwil schemas in Typescript
- Dump MySQL data to KwilDB
- Support migrations over the network
- Prevent duplicates in subsequent migrations