Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mariuz/mysql2firebird
Quick and Dirty converter to automate conversion of MySQL database to Firebird (originally created by Milan Babuskov)
https://github.com/mariuz/mysql2firebird
firebird mysql php
Last synced: 5 days ago
JSON representation
Quick and Dirty converter to automate conversion of MySQL database to Firebird (originally created by Milan Babuskov)
- Host: GitHub
- URL: https://github.com/mariuz/mysql2firebird
- Owner: mariuz
- License: gpl-2.0
- Created: 2011-05-05T09:49:05.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-07-25T06:57:08.000Z (over 11 years ago)
- Last Synced: 2024-05-01T13:26:02.026Z (7 months ago)
- Topics: firebird, mysql, php
- Language: PHP
- Homepage: https://github.com/mariuz/mysql2firebird
- Size: 64.5 KB
- Stars: 5
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: COPYING
Awesome Lists containing this project
README
Small parser that changes from MySQL to Firebird syntax. Currently it only supports
database structure dump (no data, only structure) from PHPMyAdmin and MySql Workbench
Not all datatypes are supported, but feel free to "fix" it. It's written
in PHP and it's open source.Here is a quick overview
Make sure you test the output before using it in production. It does support some tricky
stuff like auto increment columns and LAST_INSERT_ID. There is a
stored procedure for this at the end of the script, you can call it
like this:select id from last_insert_id;
On Windows, you can run the program like this:php.exe -f mysql2firebird.php mysql_dump.sql > firebird_dump.sql
Once you create the Firebird script, make sure you search for text
WARNING: which might indicate some incompatibilities. For example,
Firebird does not have tinyint, mediumint and unsigned datatypes.
Also, check for TEXT and LONGTEXT. I’m using UTF8, so I converted
those to varchar(8000), which might not be what you want. Maybe BLOB
SUB_TYPE 0 would be a better choiceOriginally created by Milan Babuskov
http://www.backwardcompatible.net/115-converting-mysql-database-to-firebird