Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I forward engineer in MySQL Workbench without losing objects?

How do I forward engineer my MySQL Model in the MySQL Workbench without losing the database's table rows?

I basically have a remote database with a users table with tuns of users in it. I also have a MySQL Model with the model of that remote database. In the model however, I have added 1 extra column to the users table. How do I add that column to the remote database without losing all users?

I have set a default value for the new column if that is a problem.

like image 920
Jeroen Avatar asked Oct 21 '13 15:10

Jeroen


People also ask

What is forward and reverse engineering in MySQL Workbench?

9.4.1 Forward Engineering 9.4.2 Reverse Engineering. MySQL Workbench provides capabilities to forward engineering physical database designs. A visual data model can be transformed into a physical database on a target MySQL Server by executing the forward engineering wizard.

What is reverse engineering in MySQL Workbench?

With MySQL Workbench, you can reverse-engineer a database using a MySQL create script or you can connect to a live MySQL server and import a single database or a number of databases.


1 Answers

Click on Database -> Synchronize Model or simply press Shift + Control + Z. A synchronization pop-up dialogue will appear and guide you through the process.

like image 141
Jeroen Avatar answered Oct 05 '22 23:10

Jeroen