[MDEV-32745] config upgrade helper tool Created: 2023-11-09 Updated: 2024-02-02 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major |
| Reporter: | Sergei Golubchik | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
A tool that helps to adjust config files after MariaDB is upgraded. It can list all options that are no longer recognized by the server, suggest replacements, if any. Also it could check for invalid values of enum/set variables. To parse all files it could use my_print_defaults, the list of supported options could be hard-coded or extracted from mariadbd --help and such. perl/python or C/C++ ? C or C++ is probably more portable for windows. For code how to parse options like !include, check mysys/my_defaults.c Suggested options:
We need both inline- and last- as some options may depend on their place in the config file. The tool should also be prepared for special handling of some specific options. Note that MariaDB don't have the audit_log plugin (Percona Server). --plugin-load=QUERY_RESPONSE_TIME_READ=query_response_time.so;QUERY_RESPONSE_TIME_WRITE=query_response_time.so As a reference, here are some common config options found in Percona server that is not in MariaDB: |
| Comments |
| Comment by Daniel Black [ 2023-11-14 ] | ||||||||||||||||||||||||||||||
|
First concept to show incorrect options: my_convert.sh
Example:
| ||||||||||||||||||||||||||||||
| Comment by Michael Widenius [ 2023-11-14 ] | ||||||||||||||||||||||||||||||
|
Great first version.
What I would like to see in the final script/tool:
When it comes to fixing things inplace, check out the replace tool. It does this and also has optimization to not change files that does not need conversion. | ||||||||||||||||||||||||||||||
| Comment by Daniel Black [ 2023-12-14 ] | ||||||||||||||||||||||||||||||
|
note MDEV-26923 Check all invalid config options #2935 | ||||||||||||||||||||||||||||||
| Comment by Vladislav Vaintroub [ 2023-12-21 ] | ||||||||||||||||||||||||||||||
|
mysql_upgrade_service.exe (windows upgrade tool) has edited my.ini to remove invalid options for a while now, itself. Without suggestions, it removed known outdated options. It did not support "!include" , but neither our nor MySQL installer use any includes on Windows |