Bug #121285 Workbench 26.7.0 does not connect

Submitted: 15 Sep 7:31 Modified: 29 Oct 14:31
Reporter: Valerio Messina Email Updates:
Status: Documenting Impact on me:
None 
Category:MySQL Workbench Severity:S1 (Critical)
Version:26.7.0 OS:Windows (Win11)
Assigned to: CPU Architecture:x86 (64-bit)
Tags: MariaDB

[15 Sep 7:31] Valerio Messina
Description:
after installing in parallel to 8.0.47 CE, and importing the connection profiles from 8.x series, it can connect on any of them

How to repeat:
1) install Workbench 26.7.0
2) import connection from 8.x
3) try to connect
it wait forever with e circle animation

also the button "Test Connection" does nothing
[15 Sep 7:50] Daniël van Eeden
Do you see anything happening with tcpdump/wireshark (best with host=127.0.0.1 so it uses TCP)?
[15 Sep 11:44] Valerio Messina
I cannot install Wireshark on company PC as is considered an hacking tool.

About "tcpdump", it is available on Linux, but on Windows isn't.
I checked also in Cygwin and MSYS2 I have installed for SW develop, but there isn't.

Any other suggestion?
[15 Sep 16:16] Valerio Messina
OK, it require admin right so I can do only some little tests.
Our MySQL server is at IP:10.90.0.34

I started and admin PowerShell and typed the following commands:

PS > pktmon filter add -i 10.90.0.34 -t tcp syn
PS > pktmon start -c
=== here I tryed to connect for 30" using Workbench 26.7.0 ===
PS > pktmon stop
PS > pktmon etl2txt D:\PktMon.etl

see attched zipped file: D:\PktMon.txt
[28 Sep 16:20] Alfredo Kojima
Does the same happen if you connect to a manually added connection instead of an imported one? 

Can you look at the workbench/shell logs from View -> Developer to see if there are any clues?

Can you also try connecting to the same server from the command line using the mysqlsh.exe executable bundled with workbench?

Like

mysqlsh -u<user> -h<host> -p
[29 Sep 11:32] Valerio Messina
I tryed to create a new connection, same results.
[29 Sep 11:36] Valerio Messina
from the menu View, Developer, Open mysqlsh.log File
you can see there are two identical errors on startup:

Error: [MSG] Thread ServiceSession-bac68649-bbe7-11f1-99b6-8469937df681 exiting with code MySQL Error (1193): Unknown system variable 'explain_json_format_version

then remain stuck on:

Info: [MSG] Registering desktop bridge session...
[29 Sep 11:56] Valerio Messina
I repeated the tests commenting the file:
C:\Users\********\AppData\Roaming\MySQL Workbench\mysqlsh\mysqlsh.log
with actions:

# startup:
2026-09-29 11:49:59 [22100:132]: Info: D:\ProgramFiles\MySQL\MySQL Workbench\resources\app\shell\bin\mysqlsh.exe   Ver 26.7.1 for Win64 on x86_64 - for MySQL 26.7.0 (MySQL Community Server (GPL)) - build 23405496 - commit_id 5e0ce78fcd0830027c53038b831c19018579f084 - product_id windows-x86-64bit-release zip
2026-09-29 11:49:59 [22100:132]: Info: Using credential store helper: D:\ProgramFiles\MySQL\MySQL Workbench\resources\app\shell\bin\mysql-secret-store-windows-credential.exe
2026-09-29 11:49:59 [22100:132]: Info: Setting Python home to 'D:\ProgramFiles\MySQL\MySQL Workbench\resources\app\shell\lib\Python3.13'
2026-09-29 11:49:59 [22100:132]: Info: Loading startup files...
2026-09-29 11:49:59 [22100:132]: Info: Loading plugins...
2026-09-29 11:50:08 [22100:132]: Info: [MSG] Starting MySQL Shell GUI desktop bridge...
2026-09-29 11:50:08 [22100:132]: Info: [MSG] Registering desktop bridge session...

# edit connection profile, Test connection:
2026-09-29 11:50:37 [22100:18636]: Info: Connecting to MySQL at: mysql://********@***************.it:3306/cis?ssl-mode=PREFERRED&connect-timeout=0&compression-level=3
2026-09-29 11:50:37 [22100:18636]: Info: Shell.open_session: tid=0: CONNECTED: ***************.it:3306
2026-09-29 11:50:37 [22100:18636]: Info: ClassicSession.run_sql: tid=6945: MySQL Error 1193 (HY000): Unknown system variable 'explain_json_format_version', SQL: SET SESSION explain_json_format_version=2
2026-09-29 11:50:37 [22100:18636]: Error: [MSG] Thread ServiceSession-eb5b5143-bbfb-11f1-bde8-8469937df681 exiting with code MySQL Error (1193): Unknown system variable 'explain_json_format_version'

# double click on a connection:
2026-09-29 11:51:24 [22100:2548]: Info: Connecting to MySQL at: mysql://********@***************.it:3306/cis?ssl-mode=PREFERRED&connect-timeout=0&compression-level=3
2026-09-29 11:51:24 [22100:2548]: Info: Shell.open_session: tid=0: CONNECTED: ***************.it:3306
2026-09-29 11:51:24 [22100:2548]: Info: ClassicSession.run_sql: tid=6946: MySQL Error 1193 (HY000): Unknown system variable 'explain_json_format_version', SQL: SET SESSION explain_json_format_version=2
2026-09-29 11:51:24 [22100:2548]: Error: [MSG] Thread ServiceSession-eb5b5143-bbfb-11f1-bde8-8469937df681 exiting with code MySQL Error (1193): Unknown system variable 'explain_json_format_version'
[4 Oct 1:45] Alfredo Kojima
What version of mysql are you connecting to?
[5 Oct 9:18] Valerio Messina
Server version: 10.4.32-MariaDB mariadb.org binary distribution
the one packaged in XAMPP:
https://www.apachefriends.org/blog/new_xampp_20231119.html
[5 Oct 9:22] Valerio Messina
here the mysqlsh.exe LOG:

D:\ProgramFiles\MySQL\MySQL Workbench\resources\app\shell\bin>mysqlsh.exe ********@sql-srv.*******.it:3306/cis -u******** -p
Please provide the password for '********@sql-srv.*******.it:3306': *******
Save password for '********@sql-srv.*******.it:3306'? [Y]es/[N]o/Ne[v]er (default No): Y
MySQL Shell 26.7.1

Copyright (c) 2016, 2026, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
Other names may be trademarks of their respective owners.

Type '\help' or '\?' for help; '\quit' to exit.
Creating a session to '********@sql-srv.*******.it:3306/cis'
Fetching global names, object names from `cis` for auto-completion... Press ^C to stop.
Your MySQL connection id is 6864
Server version: 10.4.32-MariaDB mariadb.org binary distribution
Default schema set to `cis`.
 MySQL  sql-srv.*******.it:3306  cis  SQL > select distinct TABLE_SCHEMA  from information_schema.columns;
+--------------------+
| TABLE_SCHEMA       |
+--------------------+
| information_schema |
...
| mysql              |
..
| performance_schema |
| phpmyadmin         |
...
+--------------------+
35 rows in set (1.4181 sec)
 MySQL  sql-srv.*******.it:3306  cis  SQL > \exit
Bye!
[5 Oct 15:46] Alfredo Kojima
Thank you for the bug report. Looks like a mariadb incompatibility.
[5 Oct 15:48] Alfredo Kojima
Could you confirm whether commenting out line 77 in DbMySQLSessionSetupTasks.py resolves the issue?
[6 Oct 8:12] Valerio Messina
line 77 is empty as show in attached image. I try to comment line 76, but got a worse error. Probably your code in not the same as the 26.7.0 released one
[6 Oct 16:13] Alfredo Kojima
Line to be commented out is this:
        self.execute("SET SESSION explain_json_format_version=2")
[6 Oct 20:48] MySQL Admin
Posted by developer: Bug status updated to 'Patch pending'
[7 Oct 8:42] Valerio Messina
yes, with line 60 commented it can connect and I can send queries
[12 Oct 20:48] MySQL Admin
Posted by developer: Bug status updated to 'Patch approved'
[13 Oct 20:48] MySQL Admin
Posted by developer: Bug status updated to 'Documenting'
[29 Oct 14:31] Valerio Messina
Workbench 26.10.0 still has file:
\MySQL\MySQL \ProgramFiles\Workbench\resources\app\shell\lib\mysqlsh\plugins\gui_plugin\core\dbms\DbMySQLSessionSetupTasks.py
class ExplainJsonFormatVersionTask(DbSessionSetupTask):
line 77 self.execute("SET SESSION explain_json_format_version=2")
uncommented, and on connection always give:

MySQL Error (1193): Unknown system variable 'explain_json_format_version'

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.081 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.