Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2014-02-17
7
Medium Priority
?
955 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
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 

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 2000 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

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller singl…
By, Vadim Tkachenko. In this article we’ll look at ClickHouse on its one year anniversary.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

721 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