Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Not a Bug
-
10.2
-
None
Description
command line tools read by default the client section from configuration file and exit with an error, if an entry is not supported.
How to repeat:
1) Using non C/C related configuration keywords
my.cnf
[client]
default-character-set=utf8mb4
georg@beethoven:~/work/mariadb/test$ ~/mariadb/bin/mysql -e"show variables like 'character_set_client'" |
+----------------------+---------+
|
| Variable_name | Value |
|
+----------------------+---------+
|
| character_set_client | utf8mb4 |
|
+----------------------+---------+
|
georg@beethoven:~/work/mariadb/test$ ~/mariadb/bin/mysqlbinlog |
/home/georg/mariadb/bin/mysqlbinlog: unknown variable 'default-character-set=utf8mb4' |
|
2) Using Connector/C keywords
my.cnf
[client]
#db is an alias for database
db=test
georg@beethoven:~/work/mariadb/test$ ~/mariadb/bin/mysql |
/home/georg/mariadb/bin/mysql: unknown variable 'db=test' |