Solved

mysql workbench - how to get diagram updated from live db tables

Posted on 2014-02-17
7
762 Views
Last Modified: 2014-02-18
a table name and ordering of fields and dependencies changed on the server.
I'm using Workbench R E  to display a schema diagram.
how can i get it to refresh from the server?
i tried  right click REFRESH on the tables affected, but nothing changes.
I tried exiting and re-entering and nothing changes.
please advise.
thanks
0
Comment
Question by:willsherwood
  • 4
  • 3
7 Comments
 
LVL 28

Expert Comment

by:FishMonger
Comment Utility
So, the production server was updated but not the development/test server and now you want to synchronize the test box with the production box?

Menu Option:

Database
-> Synchronize Model
-> connect to your "live" db
-> Next
-> Select desired Schema
-> Next
-> Next
-> click on Update Model (make sure all arrows point from Source to Model
-> continue clicking on "Next" (maybe twice more) until completed
0
 

Author Comment

by:willsherwood
Comment Utility
this is very good -
question however:
even with the arrows in the proper direction (source, meaning server) --> model (diagram)

it says preview database changes to be applied.

i do not want to change anything in the database on the server.
perhaps is this window title just a generalized/ambiguous title?

thanks!
0
 
LVL 28

Expert Comment

by:FishMonger
Comment Utility
In this case the changes will be applied to the model and EER diagram.  The production server db will not be affected.

It's not clear how you setup your environment.  Are you connecting to and working directly on your production database in Workbench when making changes to the model and EER diagram?  If so, that's a risky approach.

You should be working in a test environment with a copy of the production database.  All of the changes you make in Workbench should be against that test db and routinely synchronized with that test db.  Once you have the db modified to your liking (which often takes several revisions), then synchronize that model with the production server.

The Workbench Model and EER diagram can be altered as much as you want without affecting the database.  It's the synchronization step that alters the database and you specify which database (dev or prod) you want updated in that sync process.
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

Author Comment

by:willsherwood
Comment Utility
thanks - sounds like the window/dialogue box title is just the case of not being precise :)

it's a co-development, and i am using workbench ONLY to generate diagrams.
our previous tool only works on PHP4 and had soooo many nice features.

while i have you on the line, do you know how to change the font -
i  can only find to print a hardcopy by screenshotting the window and going from there.
the font does not display clearly at small sizes (for large diagrams with lots of tables)

thanks for your help
0
 

Author Comment

by:willsherwood
Comment Utility
p.s.  the execution worked but did not update the
display order of the fields - i even checked with PHPMyAdmin to make sure of the order on the server.

how can i get the sequence of fields to be in the order they are on the server (live db)

thanks
0
 
LVL 28

Accepted Solution

by:
FishMonger earned 500 total points
Comment Utility
while i have you on the line, do you know how to change the font
Edit -> Preferences -> Appearance tab

how can i get the sequence of fields to be in the order they are on the server (live db)
The synchronize step has always done that for me.

If it failed for you, I see 2 options.

1) Make the needed adjustments to the model and sync it to the server

2) Use the "Reverse Engineer" option under the Database menu to rebuild/recreate the model from the server db.
0
 

Author Closing Comment

by:willsherwood
Comment Utility
thanks for EVERYTHING!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

All XML, All the Time; More Fun MySQL Tidbits – Dynamically Generate XML via Stored Procedure in MySQL Extensible Markup Language (XML) and database systems, a marriage we are seeing more and more of.  So the topics of parsing and manipulating XM…
I have been using r1soft Continuous Data Protection (http://www.r1soft.com/linux-cdp/) for many years now with the mySQL Addon and wanted to share a trick I have used several times. For those of us that don't have the luxury of using all transact…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now