How to enable the use quotes on MySQL Workbench 6.3? - mysql

Since last MySQL Workbench update (6.3) it does not allow me to use single quote (') or double quote (") when writing a query.
Does anyone knows how to fix it?

That's a known bug. Here's a work around for mac though from another thread:
You can configure just the Workbench to use US keyboard layout, keeping others application with your native layout:
Go to System Preferences > Keyboard > Input Sources
Enable booth keyboard layouts (yours and the US)
Check "Show Input Menu Bar" and "Automatically switch to a document's input source"
Then with the MySQLWorkbench app active, change your keyboard to US using the icon in Mac's menu bar

Related

How to wrap text for mysql database results in PhpStorm

I'm wondering if there is a way to wrap text in the database tab in PhpStorm.
There are some very long results that goes further than I'm able to see.
Here is how that looks like:
Are there any kind of settings or preferences that can wrap text for mysql results in PhpStorm?
I'm using PhpStorm version 2019.1.1
EDIT
I found something that might solve this issue: https://www.jetbrains.com/help/phpstorm/database-tool-window.html (CTRL + F wrap), but I simply cannot find the icon for "Foreign Data Wrapper"
Foreign data wrappers are a concept in Postgres for remote object access. You're looking at the wrong docs, the database tool window is the one where you can create/configure datasources, the window that shows the data is the database console's result pane.
Anyways, AFAICT there is no way (yet) to show the columns wrapped by default. Only when for the edit mode you can activate soft wrapping. Double click on the column or hit F2, then use View > Active Editor > Soft Wrap.
In File > Settings > Keymap you can put that on a shortcut for easier access.
If you enable soft-wrapping for all "files" by specifying * in File > Settings > Editor > General > Soft-wrap files, then the table editor's edit mode is affected by it too and will wrap in edit mode by default.
See also
https://youtrack.jetbrains.com/issue/DBE-5534
https://youtrack.jetbrains.com/issue/DBE-1951
https://www.jetbrains.com/help/phpstorm/2019.1/settings-keymap.html
https://www.jetbrains.com/help/phpstorm/2019.1/database-console.html#f90b0d14
https://www.jetbrains.com/help/phpstorm/2019.1/table-editor.html
https://www.jetbrains.com/help/phpstorm/2019.1/settings-editor-general.html

Schema Privileges does not display in MySQL Workbench

So I was trying to create a user and password for a particular database in Mysql Workbench, but the Schema Privileges does not seem to display completely for me to work on. Any reasons as to why?
It is a bug (glitch), and already reported to MySql team. I had the same problem, by the time it get fixed; Please use it by "restore down" window mode.
When defining a user the "Schema Privileges" tab is non-functional when the Workbench window is in fullscreen mode (which is the default mode on start-up). Only the "Schema" column is shown in the embedded window and the "revoke all privileges", "delete entry", and "add entry" buttons are missing.
The problem goes away when the "restore down" window button is clicked and does NOT re-appear when the Workbench window is returned to fullscreen.
Glitch
Without Glitch
So on the Mac, and this may be different on Windows, the devs have gone minimalist with the interface in Workbench. So there are hidden controls where you have to move your mouse around until the cursor changes, only then can you see the control. Here you can see that the Schema Privileges section on the Mac doesn't show at all until you drag it up. Likely in Windows you would need to drag that right side to the right to increase the viewing area.
Here they are collapsed:
When I drag up on the hidden control they show up again:
I have found the solution :
In C:\Users[you]\AppData\Roaming\MySQL\Workbench\cache, delete the XXX.columns_widths file where XXX is your connection name.
J-Luc
I had this same problem after my Windows 10 crashed due to a power outage during a Windows update. Win10 basically installed a fresh copy of itself but kept my user directory, which included my original %AppData% settings from mysql. I basically blew away the entire contents of C:\Users{my user name}\AppData\Roaming\MySQL\Workbench ... after which things started working properly again.
Clearing AppData didn't work for me. It was bugging me on Windows 10 Workbench 6.3.x.
Solution was to uninstall it and re-install 6.2.5, by clicking "Previous GA version" from download page. It was back to the old, black Home screen, my connections were still there from 6.3.x and the UI glitch is gone.

Stylish: "Turn all styles off" from command line?

I frequently end up doing ~5 different manual actions when switching between using my laptop in dark environments and light environments, one of which is clicking Turn all styles off in the Stylish extension toolbar button to disable my dark user styles. I'd like to automate this somehow, probably a script bound to a hotkey. Is there a way to have the same effect as clicking Turn all styles off through the command line or some other way to accomplish this goal? I'm using Stylish in Chrome on Ubuntu.
My findings are that there isn't any way to change chrome extension settings from the command line and that the best way to do this is to set a key binding per #wOxxOm's comment and to use xdotool to send the keystrokes to chrome. There are a lot of gotchas in getting this to work. This is the final command I ended up using:
xdotool search --class 'google-chrome' windowactivate --sync \
key --window 0 --clearmodifiers 'ctrl+shift+5'
Chrome doesn't accept the keystrokes if it's not active, so use windowactivate --sync first. It seems that Chrome ignores XTEST events so use --window 0 to force xdotool to use XSendEvent instead. Finally, I had to use --clearmodifiers because I have Caps_Lock and Control_L swapped.

phpStorm 7 Code Completion Issues

Since updating to phpStorm 7 for OSX, I cannot get code completion for HTML to stop.
For example, if I type class=, as soon as I hit =, two double quotes are injected. How can this be stopped? Is this a bug? I've unchecked everything under Preferences > Editor > Smart Keys and Code Completion.
It is now possible to disable this feature:
http://youtrack.jetbrains.com/issue/IDEA-113332#comment=27-612047
If you go to Preferences -> IDE Settings -> Editor -> Smart Keys
and untick the box marked "Automatically add quotas for attribute value", you will be back to normal (non-frustrating) behavior.
There is a known issue. It will be possible to disable this behavior in the future versions.

pressing ctrl+w in mysql workbench results in ETB

So I'm using the MySQL Workbench SQL Editor 5.2.45 CE
However whenever I try to close a tab using the keyboard shortcut Ctrl+W, instead of closing the tab it prints out "ETB" in the query editor instead and does not close the tab...
Any idea what's causing this and how to resolve it?
You are probably working on Windows. The ETB output is from the editor when the hotkey is not handled in the UI and hits the editors input processor without being defined for an action (like select word or copy to clipboard). The editor control is a Scintilla instance which is able to also display non-printable characters.
The hotkey Ctrl+W was previously used to close tabs, but since Ctrl+F4 is much more common on Windows it was changed. So use Ctrl+F4 in the future instead.