Add post: When Your Database Client Lies to You (Workbench 26 / MariaDB)
Deploy / build (push) Successful in 22s
Deploy / build (push) Successful in 22s
EN + ZH devops gotcha post on debugging MySQL Workbench 26.7.0's failure to connect to MariaDB. Three patches to Oracle's bundled code, all the same root cause: `major >= 8` is not a valid MySQL-vs-MariaDB test. Also adds per-post OG + banner (TERMINALS/BANNERS entries).
This commit is contained in:
@@ -585,6 +585,26 @@ BANNERS['replacing-rdpguard-with-ipban'] = {
|
||||
],
|
||||
};
|
||||
|
||||
BANNERS['patching-workbench-26-for-mariadb'] = {
|
||||
titlebar: 'root@win11 — workbench 26.7.0',
|
||||
lines: [
|
||||
{ t: 'cmd', text: 'workbench → mariadb 192.168.1.124:3306' },
|
||||
{ t: 'err', text: 'TypeError: on_session_message() missing 1 arg' },
|
||||
{ t: 'dim', text: 'the error handler crashed reporting the error' },
|
||||
{ t: 'err', text: "ERROR 1193: Unknown system variable 'gtid_mode'" },
|
||||
{ t: 'dim', text: 'MariaDB 10.11 → nversion 101119 · major >= 8 guard passes' },
|
||||
{ t: 'cmd', text: 'patch replication.py · DbSession.py · SetupTasks.py' },
|
||||
{ t: 'err', text: "ERROR 1193: 'explain_json_format_version' — again" },
|
||||
{ t: 'hl', text: '4 connections · mysqlsh proved the server was fine' },
|
||||
],
|
||||
flow: [
|
||||
{ n: '1', label: 'mysqlsh test' },
|
||||
{ n: '2', label: 'fix handler' },
|
||||
{ n: '3', label: '3 patches' },
|
||||
{ n: '4', label: 'connected ✓' },
|
||||
],
|
||||
};
|
||||
|
||||
// ---------- read frontmatter ----------
|
||||
const postPath = join(ROOT, 'src', 'content', 'posts', `${slug}.md`);
|
||||
let category = 'devops';
|
||||
|
||||
@@ -181,6 +181,12 @@ TERMINALS['replacing-rdpguard-with-ipban'] = `
|
||||
<div class="line"><span class="prompt"> </span><span class="err">Unrecognized command or argument '--install-service'</span></div>
|
||||
<div class="line"><span class="prompt">$</span><span class="cmd">sc.exe create IPBAN type= own start= auto binPath= ...</span><span class="fix">→ AUTO_START ✓</span></div>`;
|
||||
|
||||
TERMINALS['patching-workbench-26-for-mariadb'] = `
|
||||
<div class="line"><span class="prompt"> </span><span class="err">TypeError: on_session_message() missing 1 required argument</span></div>
|
||||
<div class="line"><span class="prompt">$</span><span class="cmd">select @@gtid_mode · MariaDB 10.11</span></div>
|
||||
<div class="line"><span class="prompt"> </span><span class="err">ERROR 1193: Unknown system variable 'gtid_mode'</span></div>
|
||||
<div class="line"><span class="prompt">$</span><span class="cmd">3 patches · 4 connections</span><span class="fix">→ connected ✓</span></div>`;
|
||||
|
||||
const DEFAULT_TERMINAL = `
|
||||
<div class="line"><span class="prompt">$</span><span class="cmd">engineering · devops · self-hosting</span></div>
|
||||
<div class="line"><span class="prompt"> </span><span class="fix">read the full post →</span></div>`;
|
||||
|
||||
Reference in New Issue
Block a user