MSSQL to MySQL Database Migration
A Rust project to migrate MSSQL databases to MySQL, including table structures, column data types, and table data rows.
Features
- Connects to MSSQL and MySQL databases to perform the migration.
- Converts MSSQL table structures and column data types to their corresponding MySQL equivalents.
- Transfers table data rows from MSSQL to MySQL.
- Provides flexibility in configuring connection details, table mappings, and migration options.
- Handles differences in data types, constraints, and other database-specific details during the migration process.
Dependencies
- tokio - Asynchronous runtime for Rust.
- tokio-util - Utilities for working with Tokio.
- chrono - Date and time library for Rust.
- toml - TOML parsing and serialization library for Rust.
- tiberius - MSSQL database driver for Rust.
- sqlx - Database toolkit for Rust, including support for MySQL.
Usage
- Copy the
config.example.toml
file toconfig.toml
. - Configure the connection details and whitelisted tables for the MSSQL and MySQL databases in the
config.toml
file. - Customize the table mappings and migration options in the
mappings.toml
file. - Build and run the migration tool using Cargo:
cargo run --release
Installation
Make sure you have Rust installed. You can install Rust from the official website: https://www.rust-lang.org/tools/install
Clone the repository:
git clone https://github.com/bitalizer/db-migrator.git