Details
-
Task
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
None
Description
Extend INFORMATION_SCHEMA.SYSTEM_VARIABLES to show what .cnf file the value was read from. Note that included files (with !include and !includedir) should be shown, not just the master /etc/my.cnf.
Possible implementation, load_defaults() adds (may be on request only) special options in the argv list, like --file-name /my/cnf/path. And handle_options() uses that (comparing pointers, just like with --separator--).
This could go into GLOBAL_VALUE_ORIGIN column or into a new column, say, GLOBAL_VALUE_ORIGIN_INFO
which would have a file name for CONFIG, and, say, username for SQL.
Original description:
It's really difficult to check that MySQL/MariaDB is using my.cnf or not. Also we can't check that what are the default values of variables through mysql client. It would be really helpful if we can do like
1. Add 3rd column like "last updated by" (read cnf, set global, set session, default)
or
2. Make separate command like SHOW DEFAULT VARIABLES
or
3. Adding columns to information_schema.global_variables to check details
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Fix Version/s | 10.1.1 [ 16801 ] | |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Assignee | Sergei Golubchik [ serg ] | |
Resolution | Fixed [ 1 ] | |
Status | Closed [ 6 ] | Stalled [ 10000 ] |
Issue Type | Bug [ 1 ] | Task [ 3 ] |
Description |
It's really difficult to check that MySQL/MariaDB is using my.cnf or not. Also we can't check that what are the default values of variables through mysql client. It would be really helpful if we can do like
1. Add 3rd column like "last updated by" (read cnf, set global, set session, default) or 2. Make separate command like SHOW DEFAULT VARIABLES or 3. Adding columns to information_schema.global_variables to check details |
Extend {{INFORMATION_SCHEMA.SYSTEM_VARIABLES}} to show what {{.cnf}} file the value was read from.
Possible implementation, {{load_defaults()}} adds (may be on request only) special options in the {{argv}} list, like {{\-\-file-name /my/cnf/path}}. And {{handle_options()}} uses that (comparing pointers, just like with {{\-\-separator--}}). Original description: {quote} It's really difficult to check that MySQL/MariaDB is using my.cnf or not. Also we can't check that what are the default values of variables through mysql client. It would be really helpful if we can do like 1. Add 3rd column like "last updated by" (read cnf, set global, set session, default) or 2. Make separate command like SHOW DEFAULT VARIABLES or 3. Adding columns to information_schema.global_variables to check details{quote} |
Fix Version/s | 10.3 [ 22126 ] | |
Fix Version/s | 10.1.1 [ 16801 ] |
Description |
Extend {{INFORMATION_SCHEMA.SYSTEM_VARIABLES}} to show what {{.cnf}} file the value was read from.
Possible implementation, {{load_defaults()}} adds (may be on request only) special options in the {{argv}} list, like {{\-\-file-name /my/cnf/path}}. And {{handle_options()}} uses that (comparing pointers, just like with {{\-\-separator--}}). Original description: {quote} It's really difficult to check that MySQL/MariaDB is using my.cnf or not. Also we can't check that what are the default values of variables through mysql client. It would be really helpful if we can do like 1. Add 3rd column like "last updated by" (read cnf, set global, set session, default) or 2. Make separate command like SHOW DEFAULT VARIABLES or 3. Adding columns to information_schema.global_variables to check details{quote} |
Extend {{INFORMATION_SCHEMA.SYSTEM_VARIABLES}} to show what {{.cnf}} file the value was read from. Note that included files (with {{!include}} and {{!includedir}}) should be shown, not just the master {{/etc/my.cnf}}.
Possible implementation, {{load_defaults()}} adds (may be on request only) special options in the {{argv}} list, like {{\-\-file-name /my/cnf/path}}. And {{handle_options()}} uses that (comparing pointers, just like with {{\-\-separator--}}). Original description: {quote} It's really difficult to check that MySQL/MariaDB is using my.cnf or not. Also we can't check that what are the default values of variables through mysql client. It would be really helpful if we can do like 1. Add 3rd column like "last updated by" (read cnf, set global, set session, default) or 2. Make separate command like SHOW DEFAULT VARIABLES or 3. Adding columns to information_schema.global_variables to check details{quote} |
Fix Version/s | 10.3 [ 22126 ] |
Fix Version/s | 10.5 [ 23123 ] |
Description |
Extend {{INFORMATION_SCHEMA.SYSTEM_VARIABLES}} to show what {{.cnf}} file the value was read from. Note that included files (with {{!include}} and {{!includedir}}) should be shown, not just the master {{/etc/my.cnf}}.
Possible implementation, {{load_defaults()}} adds (may be on request only) special options in the {{argv}} list, like {{\-\-file-name /my/cnf/path}}. And {{handle_options()}} uses that (comparing pointers, just like with {{\-\-separator--}}). Original description: {quote} It's really difficult to check that MySQL/MariaDB is using my.cnf or not. Also we can't check that what are the default values of variables through mysql client. It would be really helpful if we can do like 1. Add 3rd column like "last updated by" (read cnf, set global, set session, default) or 2. Make separate command like SHOW DEFAULT VARIABLES or 3. Adding columns to information_schema.global_variables to check details{quote} |
Extend {{INFORMATION_SCHEMA.SYSTEM_VARIABLES}} to show what {{.cnf}} file the value was read from. Note that included files (with {{!include}} and {{!includedir}}) should be shown, not just the master {{/etc/my.cnf}}.
Possible implementation, {{load_defaults()}} adds (may be on request only) special options in the {{argv}} list, like {{\-\-file-name /my/cnf/path}}. And {{handle_options()}} uses that (comparing pointers, just like with {{\-\-separator--}}). This could go into {{GLOBAL_VALUE_ORIGIN}} column or into a new column, say, {{GLOBAL_VALUE_ORIGIN_INFO}} which would have a file name for {{CONFIG}}, and, say, username for {{SQL}}. Original description: {quote} It's really difficult to check that MySQL/MariaDB is using my.cnf or not. Also we can't check that what are the default values of variables through mysql client. It would be really helpful if we can do like 1. Add 3rd column like "last updated by" (read cnf, set global, set session, default) or 2. Make separate command like SHOW DEFAULT VARIABLES or 3. Adding columns to information_schema.global_variables to check details{quote} |
Priority | Major [ 3 ] | Critical [ 2 ] |
Summary | Feature request for getting details of default parameter values and if its using my.cnf | Getting details of default parameter values and if its using my.cnf |
Summary | Getting details of default parameter values and if its using my.cnf | Get details of default parameter values and if its using my.cnf |
Summary | Get details of default parameter values and if its using my.cnf | Show what config file a sysvar got a value from |
Assignee | Sergei Golubchik [ serg ] | Alexander Barkov [ bar ] |
Status | Stalled [ 10000 ] | In Review [ 10002 ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Assignee | Alexander Barkov [ bar ] | Sergei Golubchik [ serg ] |
Fix Version/s | 10.5.0 [ 23709 ] | |
Fix Version/s | 10.5 [ 23123 ] | |
Resolution | Fixed [ 1 ] | |
Status | Stalled [ 10000 ] | Closed [ 6 ] |
Workflow | MariaDB v3 [ 80597 ] | MariaDB v4 [ 133230 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 36716 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 36716 ] |
It would be helpful to get the filepath on where each setting was modified. This is helpful when there are duplicated settings, e.g. /etc/my.cnf and /etc/my.cnf.d/server.cnf