Easy way migrate data from MySql to Derby (JAVADB)? - mysql

I have to migrate my database from MySql to Derby. However, I am facing a problem, that it is not possible just to create sql dump and import in JavaDB. Is there an easy way, a tool or something that I can use? or should I do everything by hand?
Danke

One good way, is to use DdlUtils.
with this, you can export a database schema from one database and create it in another.
This is the MySQL page.

Related

MySQL structure to SQLite

I am trying to use MySQL workbench to export my model to SQLite. I don't need the data just the structure. Do you have any suggestion? Exporting to SQL and creating tables with SQLite3 using that won't work as there are several differences between MySQL and SQLite syntaxes.
From what I know there's no tool that can convert a MySQL SQL script to SQLite. You will probably have to manually rework the generated SQL. Or you could create a MySQL schema from your model and use one of the available tools to convert that schema. Needs a detour via an existing MySQL schema, however.

migrating a table full with data from MSSQL to MYSQL

I'm importing data from SQL Server to mysql.
Currently I need to migrate a single a table with a simple data structure (no constraints, only values), to mysql. The table is 1.6 milion rows
What is a good way to accomplish this?
(I saw other related topics here, but don't see something that I can work with)
The best approach is to write a program using your favorite language to migrate the data. If you are looking for a tool to accomplish this, have a look at MySQL Migration Toolkit. It migrates data from various data sources to MySQL database.
MySQL Migration Toolkit.
You could use SSIS, it can connect to ODBC data destinations and might be quicker to implement than writing an application from scratch.

Migration from MySQL to Postgresql with auto-increments - how?

I'm considering a MySQL to Postgresql migration for my web application, but I'm having a really hard time converting my existing MySQL database to Postgresql.
I tried :
mysldump with --compatible=postgresql
migration wizard from EnterpriseDB
Postgresql Data Wizard from EMS
DBConvert from DMSoft
and NONE of the above programs do a good job converting my database!
I saw some Perl and Python scripts for converting mysql to postgresql, but I can't figure out how to use them....(I installed ActivePerl and don't understand what I'm supposed to do next to run that script!)
I use Auto Increment fields (as a primary key) all the time, and these are just ignored... I understand that Postgresql does auto-increments in another way (with sequences), but it can't be THAT hard for MIGRATION software to implement that, or is it?
Did anybody have better luck converting a MySQL database with auto-increments as primary keys?
I know this is probably not the answer you are looking for, but: I don't believe in "automated" migration tools.
Take your existing SQL Scripts that create your database schema, do a search and replace for the necessary data types (autonumber maps to serial which does all the sequence handling automagically for you), remove all the "engine=" stuff and then run the new script against Postgres.
Dump the old database into flat files and import them into the target.
I have done this several times with sample databases that were intended for MySQL and it really doesn't take that long.
Probably just as long as trying all the different "automated" tools.
Why not use an ETL Tool? you dont have to worry about dumps or stuff like that.
I have migrated to PostgresSQL and MySQL and have had no problems with the auto increment fields.
You just need to know the connection credentials and thats it. I personally use Pentaho ( it's open source ).
Download Pentaho ETL from http://kettle.pentaho.org/
Unzip and run Pentaho (using .bat file spoon.bat)
Create a new Job:
Create DB connection for source data base (PostgreSQL) - using menu: Tools→Wizard→Create DataBase Connection (F3) Create DB connection for destination data base (Mysql) - using technique described above.
Run the Wizard: Tools → Wizard → Copy Tables (Ctrl-F10).
Select source (left dialog panel), and destination (left dialog panel). Click Finish.
The Job will be generated - Run the job.
If you need any help let me know.
Even when you familiar with all "PostgreSQL gotchas", doing every step by hand may take a lot of time, especially when your db is "big".
Try some other scripts/tools.
I know this is an old question but I just ran into the same problem migrating from MySQL to Postgres. After trying several migration tools out the very best one I could find, which will migrate your database structure as cleanly as possible, was Pgloader https://github.com/dimitri/pgloader/ it will take care of changing the Auto Increment to Postgres sequences no problem and it's super fast.

migrate from progressdb to mysql

I am looking out for a solution to migrate data from Progressdb to MySQL..Please let me know if there are any solutions for the same.Thank you.
If this is a one time thing then the answer above is probably best (dump to ascii and import, or link the tables).
If it is more of a replication oriented problem then you might find http://www.bravepoint.com/products-pro2-replication-suite.shtml to be helpful.
Some possibilities
Export to flat file and import to MySQL
link tables from both databases in Microsoft Access via ODBC, and then xfer data using SQL

How to migrate an old Database into a new Database using Microsoft Access

Basically this task is pretty easy when you think about it, but I found no answers in Microsoft Access or MSDN. I have to create a connection to a new Database and query the old one. After validating the old data, everything is written in a new fine Form to the my new Database.
Any Ideas?
Add:
Old Database is a Firebird Database. This Data needs to be re-structured and migrated to a new MySQL Database.
If no binary data in your database, I'd suggest just doing a csv export and reimporting.
You'll need to create the schema separately in MySQL but it's not difficult, there are lots of tutorials, and you can probably find a Firebird tool to export the DDL into a script that will either just work, or be easy to modify.
If you want to use Access in the middle, just attach each of the two external databases from Access (using ODBC or your choice of drivers). You can use the query designer wizards to build a INSERT INTO ... FROM ... type query as you would for any other situation.
You can use a tool like database workbench.
Why you want to migrate to MySQL ?
if you can access the firebird database via ODBC, i suggest the mysql migration toolkit.