Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2014-02-17
7
Medium Priority
?
1,005 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
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
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
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…
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 Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

782 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