You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a patch which should help in solving "Windows OS(Win10) is not fully supported."
I am not good at programming in Perl, so please can someone test, and comment?
i know about 1 error around line 2380....
Use of uninitialized value $autoincrement in pattern match (m//) at mysqltunerLV.pl line 2380 (#1)
I tried your patch on Windows Server 2016 with Strawberry Perl.
Applying your patch, I found error lines
...
[!!] failed to execute: SHOW TABLE STATUS FROM `mysql`
[!!] FAIL Execute SQL / return code: 256
[!!] failed to execute: SHOW TABLE STATUS FROM `performance_schema`
[!!] FAIL Execute SQL / return code: 256
[!!] failed to execute: SHOW TABLE STATUS FROM `sys`
[!!] FAIL Execute SQL / return code: 256
leading to
Use of uninitialized value $autoincrement in pattern match (m//) at
mysqltuner_windows.pl line 2380 (#1)
It seems this is due to the backslashes in the SQL command (line 2370 resp.
Actually I could successfully execute the script with all escaping (backslashes) and backticks removed.
But I guess, in case of non-alphabetical schema names you still need the backticks?
Anyway, including the backticks without any escaping (backslashes) worked for me, too.
So, in my local file, the line above now looks like
select_array "SHOW TABLE STATUS FROM `$db`"
...and the whole script works like a charm for me 😄
[Edit]
I would open a PR, but the patch from @Luuk34 above would break things for Linux-based environments.
So for true multiplatform support, I suppose some more refactoring should account for both ways.
I created a patch which should help in solving "Windows OS(Win10) is not fully supported."
I am not good at programming in Perl, so please can someone test, and comment?
i know about 1 error around line 2380....
Use of uninitialized value $autoincrement in pattern match (m//) at mysqltunerLV.pl line 2380 (#1)
The text was updated successfully, but these errors were encountered: