Solved

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

Posted on 2014-02-17
7
910 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 28

Expert Comment

by:FishMonger
ID: 39867694
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
ID: 39867798
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
ID: 39867877
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
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

 

Author Comment

by:willsherwood
ID: 39867905
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
ID: 39867913
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
ID: 39867961
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
ID: 39868058
thanks for EVERYTHING!
0

Featured Post

10 Questions to Ask when Buying Backup Software

Choosing the right backup solution for your organization can be a daunting task. To make the selection process easier, ask solution providers these 10 key questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As a database administrator, you may need to audit your table(s) to determine whether the data types are optimal for your real-world data needs.  This Article is intended to be a resource for such a task. Preface The other day, I was involved …
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

626 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