mirror of
https://github.com/MariaDB/server.git
synced 2026-05-06 23:25:34 +02:00
Client attributes
This commit is contained in:
parent
dd7339676b
commit
c776f5ac26
22 changed files with 597 additions and 27 deletions
|
|
@ -141,6 +141,9 @@ int main(int argc, char **argv)
|
|||
if (opt_default_auth && *opt_default_auth)
|
||||
mysql_options(&mysql, MYSQL_DEFAULT_AUTH, opt_default_auth);
|
||||
|
||||
mysql_options(&mysql, MYSQL_OPT_CONNECT_ATTR_RESET, 0);
|
||||
mysql_options4(&mysql, MYSQL_OPT_CONNECT_ATTR_ADD,
|
||||
"program_name", "mysqlshow");
|
||||
if (!(mysql_real_connect(&mysql,host,user,opt_password,
|
||||
(first_argument_uses_wildcards) ? "" :
|
||||
argv[0],opt_mysql_port,opt_mysql_unix_port,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue