Details
-
New Feature
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
Added support to use '?include_file' instead of '!include_file' syntax to ignore unreadable directories.
Description
Added support to use '?include_file' in addition to '!include_file' syntax to ignore unreadable directories.
This is useful if one has MariaDB config files in etc that should only be visible for the super user and the MariaDB server but one still want to provide options for normal users.
This helps solves a problem in 11.4 and above for users that do not want to use the automatic SSL authentication and don't want to have to use 'mariadbd --skip-ssl' when connecting to MariaDB server.
Example of how to solve the skip-ssl problem:
Create a readable /etc/my.cnf file with the following data:
|
|
[client]
|
skip-ssl
|
|
|
?includedir /etc/my.cnf.d
|
|
If one would use '!' instead of '?' above normal users running the 'mariadb' client would get the error "Error Can't read dir of '/etc/my.cnf.d' (Errcode: 13 "Permission denied")"
Using '?'' the readonly directory is ignored. The skip-ssl directive solves the problem of having to use --skip-ssl when connecting to MariaDB