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.
Related
Has anyone been successful in creating DDL using Erwin for Amazon Redshift? If not, does anyone know of a way to convert, say a MySQL DDL from Erwin, to an Amazon Redshift compliant DDL?
I understand that Redshift is based on PostgreSQL 8.0.2. However, there are numerous PostgreSQL features that are no compatible with Redshift. So, if I use a tool to convert MySQL DDL to PostgreSQL DDL and try to execute is against Redshift, I always run into issues.
I would appreciate any help.
One approach that works (with limited features) is to forward engineer erwin model into ODBC 3.x compliant schema i.e.
Select Target Database (Actions ---> Target Database) as ODBC/Generic with version as 3.0.
The reason this works is because ODBC/Generic sql can be executed on Redshift without any changes.
NOTE: Features like
Identity
Encode
may need manipulating FET template or more.
However, just selecting target database to ODBC may suffice in general.
Update:
this link suggests that newer DM may have further support for Redshift.
Based on some researches, I'm sure Laravel supports MySQL, SQLite, PostgreSQL by default. I mean we can just simply replace one of those database names with this:
Well I have two related questions:
Isn't there any list of all databases that Laravel supports by defaul? For example what about SQL Server? Can I just replace sqlserver with mysql, then does it work? In other word Does Laravel know sqlserver by default?
How can I add a new database to Laravel? For example (suppose sqlserver is not supported in Laraver by defaul) so how can I add sqlserver to Laravel?
Currently, Laravel 5.3 supports four databases:
MySQL
Postgres
SQLite
SQL Server (Driver 'sqlsrv')
Refer Laravel Docs - Database
Adding a new Database will always going to take great amount of efforts. Because you will need to write at least whole DB Façade (Forget about the Eloquent ORM Support) to maintain the cleanliness and ease of Laravel Framework.
This includes basic CRUD , database structures & Schema and Eloquent model and Query builder with support for your Database.
As Laravel supports most used SQL and No-SQL Databases by default, there are plenty of open source libraries for other databases, too.
For Example, Laravel MongoDB is a good open source library built using Laravel Core APIs.
I need a working tool for migrate DDL objects and data tables from MS SQL Server to MySQL. I checkout Database Migration Wizard in MySQLWorkBench 6.3,i have also tested with Ispirer tool (not free) and i can migrate only tables and data in tables but not views, store procedures and functions (maybe trigger not)..
In this MySQLWorkbench tools page : https://dev.mysql.com/doc/workbench/en/wb-migration-overview.html i found
"d.View objects are copied, and commented out if the source is not MySQL.
e.Stored Procedure and Function objects are copied, and commented out if the source is not MySQL."
So, i'm confused about why copy them and comment-out and not try to convert syntax? we know that database source is MSSQL so the syntax is different from mysql? I think it's impossible write mysql objects in MSSQL Server..no?
Thanks
Roby
Yes, the syntax is different in MySQL. The conversion process is too complicated to do it automatically, however we gave the possibility to convert it manually. So if you want migrate those views/procedures, you must uncomment it and rewrite to MySQL compatible sql.
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.
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.