MySQL Workbench - how to display relationships? - mysql-workbench

How do I make Workbench display the connecting lines between tables when I define relationships?

I had an issue generated a PNG with the relationship lines.
Environment
WorkBench version 8.0
MacOS Mojave 10.14.5 with Dark Theme
Solution:
Disable dark theme and regenerate the diagram then export the PNG.

You need to open reverse engineer: Database->Reverse engineer CTRL+R
Complete the wizard. It ask about the database to connect and other simple questions.
Just click Next.
After wizard completion the MySQL Model tab will be opened. Click there ERR Diagram icon

When you edit a table in an EER model, you will have a tab named Foreign Keys that allows you to define well... the foreign keys. These foreign keys will be visible in the diagram.
You can change the settings for the displayed relationship by double clicking on the line that connects the tables.

You need to check draw line box.

MySQL Workbench has three options for relationship visibility settings:
Fully Visible
Draw Split
Hide
It sounds like you need to switch from Draw Split to Fully Visible. Double click on the endpoint, such as the crows feet. On the Relationship tab of the edit window you will is the Visibility settings.

Related

Eclipse Papyrus asociation but settings for multiplicity missing

i make a fresh settup of eclipse and papyrus. Had it run and used on a older machine a time ago.
I try to model a class diagram.
Crated a new Project with an class diagramm drop some classes.
I am able to make an "association" between my two classes. But on properties window the fields for multiplicity are not shown. (Like in all the turtorials on the web working out of the box)
What i could get propably wrong?
Figered it out random.
If you click on the Association Icon in the Edge Panel of the palette it works.
If you make a association by using the poles comming out of the classes it wouldn't work.

How to hide/view result grid in MySQL Workbench?

I'm using MySQL Workbench on Windows. I execute a query and I get the result. Is there any option or a hotkey to hide/view the result grid without executing the query again and again?
Please help me on this.
Here is a simple technique to get back the results grid in MySql WorkBench.
Place the text cursor on a query and use the "EXPLAIN command" for the statement under the cursor.
That will open the Visual Explain window. In that window you can find Results Grid. Click on that Results Grid.
You can see the result grid again.
There's a bug in current latest (8.0.11) MySQL Workbench when for some reason it's no longer showing Results Grid when you execute your statements. The only reasonable way to fix this that I found was to close the app completely and reopen it.
You can close result tab this way
I think there is a bug in latest (8.0.11) MySQL Workbench regarding result grid view. Since the installation I was not able to see Result Grid window for any query but I have some how able to get result grid window by changing Resultset Grid font from Tomaha (default with installation) to Consolas 10 and then executing one query.
Hope this might help others facing same issue on 8.0.11 version till the permanent fix.
Updating MySQL workbench worked for me. I'm on MacOSX
This isn't the best solution, but it is a work-around:
I have MySQL Workbench version 8.0.18 and when I run a query my result grid disappears too. However, I noticed that you can have another tab open (within MySQL Workbench) where the result grid for the same table remains open, and then you can toggle between the two tabs (the query tab and the result grid tab) by using CTRL + TAB and CTRL + SHIFT + TAB.
(Other tab toggle options are here: How to manage the SQL tabs in MySQL Workbench?)
However, the caveat is that you have to keep refreshing the table's contents in the tab that has the result grid.
(In order to open a new tab you can use CTRL + T, and then click the database and table you wish to view.)
I had the same problem with MySQL Workbench 8.0.19 (Win) and could not get the Result Grid to show whatever I did. I changed the font like some of the other examples but that didn't work. I clicked the EXPLAIN button to see the Execution Plan and that didn't work either. The Result Grid kept going away.
I finally clicked the EXPLAIN button to show the Execution Plan, clicked on the Result Grid icon above that on the right, and then shut down MySQL Workbench hoping it would save the current view settings in a config file or in the registry. That seemed to work. When I opened MySQL Workbench again, the Result Grid appears and I am back to normal.
UPDATE:
I wrote too soon as that didn't have permanence. I did a little more research and found this article in the developer site of MySQL documentation.
https://dev.mysql.com/doc/workbench/en/wb-configuring-files.html
So, I decided to shut down MySQL Workbench, rename the 'wb_state.xml' file to 'wb_state-backup.xml' as found in the following path on Windows.
C:\Users{username}\AppData\Roaming\MySQL\Workbench
I then started MySQL Workbench and saw that the 'wb_state.xml' file was created on startup. I then ran a quick SELECT statement to see if I would see the Result Grid and it showed up.
I hope this works for some of you as well!

xcode 4.3.2 core data, where to set delete rules

I cannot for the life of me find where to set the delete rules for Core Data in Xcode 4.3.2
Not in file inspector, not in Core Data Model inspector, nor when I click anything, like the entities, relationships, et al. And believe me, I have clicked everything I could see. Please Help.
Where and How do I set the delete rules. I want to set it to Cascade...
Thanks
Select your relationship and select the "Data Model Inspector" tab on the right pane, it should look like this:
Delete rules are the the second option from the bottom.
You have to open the Core Data Model file in XCode, select your relationship (obviously attributes don't have delete rules), go to the 3rd tab in the inspector panel on the right and choose your delete rule:

How to highlight a table row of a TableViewer with a custom color

I'm using Viewer Framework in my Eclipse RCP Application,wherein my table has all the capabilities like sorting and filtering,the problem is with,when i select a row in the table it gets highlighted in blue color by default, when a user try to filter using search box provided,which is located above the table,then the previously selected row gets faded away.To overcome this i thought it would be better to have a custom color or predefined color like red and which doesn't get faded away even Table-viewer loses focus(i don't know).
My guess is you're running under Windows 7, where this is the defined behavior of table selection and the focus. Just try to select a file in the explorer and then focus on another window....
Almost the same behavior is seen under various versions of OSX, and possibly for other operating systems as well.
Can you work around it? Yes, but it will require some work with a SWT.ItemPaint listener...

Can't find ADO.NET Entity Model Browser Window in vs2010

I want to update my ADO.NET Entities Framework Model from the database, but I cannot find the Entity Model Browser Window. There is an example of how to update my model here, but I cannot find how to open the model browser. Could someone please tell me exactly how to open it using Visual Studio 2010?
I tried finding it through the view menu, and I do not get any valid options when right-clicking on the .edmx file.
First, open up the EDMX file. Then, in main menu select View > Other Windows > Entity Data Model Browser (it usually opens in the same panel as Solution explorer).
For me, the sequence was:
Double-click the .edmx file
Right click any white space in the opened diagram
Click Model Browser in the context menu that appears
Happy coding, all. :-)
Double click the edmx file in the Solution Explorer to bring up the Designer. The Model Browser should appear.
In my workspace it shows up in the same tab grouping as the Solution Explorer.