pnreen
December 19, 2017, 10:48am
1
Hi,
I’m looking for a method to clone/refresh my MySql database.
I thought (hoped) Toad Edge has a soution for it, with Export Import. So I installed the trial version to see if it uasable.
But till now I didn’t figure it out.
Is someone familiar with this or is there maybe an other option/solution to achiev this.
Thnx in Advance
Grtz,
Paul
are you looking to do the whole database or just the data in the tables?
If it is just the data then import/export should work.
If you want the complete database you probably need to use the MySqldump. This would be run outside of Edge.
Tomas
December 20, 2017, 7:24am
3
Hi,
So far, we don’t offer a one-click solution to clone a database. As for table data, you can export and then import data for selected tables.
As for replicating the database structure, there is a workaround how to do it.
right-click your database in Object Explorer, then click “Take Snapshot…”
find the snapshot in Snapshots View, right-click it and select an “Export Script…” action
the resulting SQL script contains create statements for the database structure and can be run within the new database
Tom
pnreen
December 20, 2017, 12:44pm
4
I’m looking for both. I want to clone the structure including the data.
For now I think using the snapshot option in combination with the export/import of the data I can create the clone.
I’m not familiair with MySqldump (yet). Can someone please explain how to use it to copy/clone a database.
Toad Edge may be used to export/import the table DDL and DML. Subsequently, the DDL, DML may be used to clone a database table. Toad Edge may also import table data from a CSV data file.
Reference:
Export database table data to a DML SQL script. Or export the database DDL.
www.toadworld.com/…/using-ssh-in-toad-edge-1-1-with-mysql-database
Subsequently, run the DDL SQL script to create a new database table. Run the DML SQL script to add table data.
Table data may also be imported from a CSV file with Import Data Wizard.
www.toadworld.com/…/using-toad-edge-1-1-with-mysql-database-new-database-amp-new-table-wizards-text-search-import-data-wizard
To clone the database itself the MySQL database platform may provide some additional database cloning features. What is the MySQL database platform?
-Local
-AWS EC2
-AWS RDS
-Oracle Cloud Platform
-IBM Bluemix
-Google Cloud Platform
-Other
this is from the MySql documentation:
dev.mysql.com/…/mysqldump.html