mysql2sqlite
mysql2sqlite copied to clipboard
Converts MySQL dump to SQLite3 compatible dump
The missing ` \( ` did break our schema with column name `print_seitenumbruch`. The string contains `enum` that got replaced to `print_seittext NOT NULL DEFAULT 0'`.
Original: ```sql CREATE TABLE "test1" ( "id" bigint(20) unsigned NOT NULL AUTO_INCREMENT, "match_id" bigint(20) unsigned NOT NULL, "season_id" int(11) unsigned DEFAULT NULL, "date" datetime DEFAULT NULL, PRIMARY KEY ("id"), UNIQUE...
I have several triggers which in MySQL dump look like this: ``` DELIMITER ;; /*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `check_zero_prefs` BEFORE INSERT ON `lang_prefs` FOR EACH ROW BEGIN IF...
Data source is `libgen_compact.sql` from one of the `libgen_compact*.rar` archives that can be found here: https://data.library.bz/dbdumps/ I get this error running the command: ```sh ❯ ./mysql2sqlite/mysql2sqlite libgen_compact.sql | sqlite3 libgen_compact_20230606.db...
This MySQL query for creating a table: ```sql CREATE TABLE IF NOT EXISTS appointment_service_type ( appointment_service_type_id INT NOT NULL AUTO_INCREMENT , appointment_service_id INT NOT NULL, name VARCHAR(50) NOT NULL ,...