Solved

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

Posted on 2014-02-17
7
828 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
Insert with SET how to handle join 6 80
AWS EC2 & RDS Instance 5 52
Present Absent from working date rage 11 38
mysql query for sum() 3 28
Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

830 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