Linux Specific
This is likely not a solution if you are using the EER-Diagram feature which is likely using some custom drawing routines.
MySQL-Workbench is using Gtk 3 which is supporting HighDPI-Displays and the modern Wayland-Protocol well. It shall work but the UI doesn't scale on Wayland. The responsible desktop entry launches actually a script named mysql-workbench which itself launches the actual mysql-workbench-bin. We need to keep using it because MySQL-Workbench has some weird requirements:
1 #!/bin/bash
2
3 # Uncomment the following line if you're having trouble with gnome-keyring lockups.
4 # This will cause passwords to be stored only temporarily for the session.
5 #WB_NO_GNOME_KEYRING=1
6
7 # force disable the Mac style single menu hack in Ubuntu Unity
8 export UBUNTU_MENUPROXY=0
9
10 # another Ubuntu bug, this this one causes modal dialogs to not work as intended
11 # https://bugs.launchpad.net/ubuntu/+source/overlay-scrollbar/+bug/903302
12 export LIBOVERLAY_SCROLLBAR=0
13
14 # force x11 backend on systems that use wayland
15 export GDK_BACKEND=x11
16
17 # Set the destdir=<some_dir> when ever you install using DESTDIR=<some_dir>.
18 destdir="$WB_DEST_DIR"
19
20 wblibdir="$destdir/usr/lib/mysql-workbench"
21 wbpluginsdir="$destdir/usr/lib/mysql-workbench/plugins"
22 ...
23 ...
24 ...
Copy the script and comment out the line with export GDK_BACKEND=x11
and use it. Now it should render an appropriate UI. A segfault upon quit seems normal. For a more convenient solution:
- Copy and edit the script as above
- Store the script where you prefer e.g. as hidden dotfile
- Copy
/usr/share/applications/mysql-workbench.desktop
to ~/.local/share/applications/mysql-workbench.desktop
# it overrides the global
- Edit the desktop file and point
Exec=mysql-workbench %f
to your modified script
Notes
The line which forces the X11 backend doesn't note why it is used. Another approach would be enforcing a integral scaling factor by $ GDK_BACKEND=2 name_of_your_executable
or falling back to fractional scaling. I guess similar restrictions apply on Mac and Windows and are the cause for the problems.