Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mysql workbench migrate database with two different names

I'm using mysql workbench to try and migrate from 1 mysql database on my VPS to another on my DS; However the database names are different and I cannot change the database names due to restrictions.

When trying to migrate from the VPS to the DS I get an error because the two database names are different.

Is it possible in mysql workbench to set this up correctly as I can't seem to find it.

like image 453
user3285356 Avatar asked Sep 05 '15 16:09

user3285356


People also ask

How do I transfer data from one MySQL database to another?

To copy a MySQL database from a server to another, you use the following steps: Export the database on the source server to a SQL dump file. Copy the SQL dump file to the destination server. Import the SQL dump file to the destination server.

How do I clone a database in workbench?

List item First, create a new database using CREATE DATABASE statement. Second, export all the database objects and data of the database from which you want to copy using mysqldump tool. Third, import the SQL dump file into the new database.


1 Answers

Yes, you can do it in manual editing step. From view combobox select All Objects, then double click on target schema name and rename it.

enter image description here

like image 89
Milosz Bodzek Avatar answered Sep 19 '22 18:09

Milosz Bodzek