How to hide/view result grid in MySQL Workbench? - 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!

Related

Mysql workbench results grid has extra panel with hast symbol next to it, how can I remove it?

I'm using mysql workbench on Ubuntu, and I seem to have hit a wrong key somewhere along the way, now I have an extra panel on my results grid blocking up my small screen.
Does anybody know how to hide this panel??

Dbeaver: can't find database in navigator

I executed
select * from pg_database
and I think the results, see screenprint below, mean that there should be a database called "President".
However, I can't find this database in the navigator (leftside in screenprint) and can't query from it.
Some time ago the database "President" was visible in the navigator, just like the database "someOtherDataBase", but now it seems to be gone!
Found it! I needed to switch on "Show all databases".
Click on the Windows tab that is available on the toolbar and there we will see the option for the Database Navigator

How do I select all text in vistual studio code?

In visual studio code (1.29.1) ctrl+a doesn't do anything for me. I checked keyboard shortcuts and it's mapped to a few select all actions (editor.action.selectAll, etc.) but when I'm in a file and press it nothing happens. How do I select all text in the current file in visual studio code?
Thanks for the comments, it make me realize it must be an environmental issue. Turns out if you have any mapping starting with a key combination that will lock that mapping to the key combo and you can't use it for anything else.
To make save all ctrl+shift+s I had to re-map save as and I mapped it to ctrl+a+s, so everytime I hit ctrl+a it just waiting for second key. In the status bar at the bottom of my editor it said something like "Ctrl+a detected, waiting for second keystroke", which means Ctrl+a won't work on its own. I re-mapped Save As to some unused key combo and it fixed select all.
This question was luckily answered on another thread
I'll post the OG answer here, nonetheless.
Most new comers to VS-Code could resolve this issue with the 2nd method provided by the OG answer:
Goto File > Preferences > Keyboard Shortcuts
in the search bar type this Select All
There's should a couple of results, you'll obviously want the "Select All" result
right click on his line and click on Change When Expression
a textbox would be highlight for you to fill in text. type editorFocus
press enter and done!
The OG answer provides image if you need to confirm that you're doing it right.
side-note: This issue bugged for more than 3 years and is the main reason my I used VS-Community over VS-Code.
So it's nice to finally be able to work normally in this very robust customizable IDE text-editor.

Netbeans does not show my code

I have worked in project for long time but after electricity has cut off and my PC shutdown.
The code in one of my frames not shown correctly, it's showing like this :
I have GUI and its shape is fine. When I run the frame from main interface it works, but as I said the code is corrupted. I don't know why. If any one has any solution for this problem it would be much appreciated.
In your Netbeans IDE,
Open Projects window (Ctrl+1) ,select file-> right click on list select Local History-> Select Local History. It will show all your last edits. you can restore the last updates from there.
In Latest netbeans releases you can directly access this from toolbar, check the below screenshot.I took this from Netbeans 7.3

How can I close an empty pane in Eclipse

I often end up with lots of empty panes in Eclipse that can only be minimized but not destroyed. How do I close these?
Update:
In this screenshot you can see two minimized on the upper left and several on the right hand side. In the center are four more. They only seem to be restorable in the Debug mode.
http://img406.imageshack.us/img406/9900/eclipse1.png
this happened to me, too. What worked for me (based on FilmJ and douncon's comments) was to open a class file, then drag that tab over the top of the empty pane.
Select Window -> Reset Perspective. That should reset the current perspective (what you call "mode") to its' initial state, (hopefully) closing all irrelevant views.
Something seems terribly wrong with your Eclipse. Maybe you should reinstall it. It is possible that you installed a buggy plugin.
First of all, what do you mean by pane? Eclipse has:
Windows (Eclipse itself, e.g. instance)
Documents (tabs)
Views (properties, tasks, explorer, etc)
If by 'pane' you mean document editors, you have problems either with your Eclipse version or most likely one of the installed plugins.
Each View also can be closed (except maybe some project types (perspectives) of which I'm not aware). For CDT (C/C++) you can close practically everything.
I'll recommend you download latest Eclipse version with no plugins, extract it to different folder, and check if that happens again. If yes, please explain more in details (like Eclipse version, perspective you are using, any side plugins, etc).
Also a good places are Eclipse community forum, mailing list and bugz :-)
I had the same problem. For me it helped to go into the right perspective and activate the functionality that caused the window in the first place. Once I reactivated the functionality, in my case "QNX Memory Analysis perspective", I was able to close all the windows one by one.
The conclusion is you have to refill the empty windows with content and then you will be able to close them properly.
So, it's really very easy for this to happen, if you open an editor that's incompatible with the existing editor, you can often end up having to place it outside of the tab list in one of your editor panes, then you might clear or copy that, typically while trying to add that view to a tab list.
In any case, what it's done is create a new editor, and all you need to do is drag some file to that empty editor window giving it some form of context, then close it.
I had the same issue. I followed #zvikico, but instead of just resetting, I first reset and then closed all the perspectives. Please follow the following to fix the problem. It worked for me:
Window -> Perspective -> Reset perspective..
After resetting follow below:
Window -> Perspective -> Close All Perspectives