mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Client attributes
This commit is contained in:
@ -915,6 +915,9 @@ static int dbConnect(char *host, char *user, char *passwd)
|
||||
mysql_options(&mysql_connection, MYSQL_DEFAULT_AUTH, opt_default_auth);
|
||||
|
||||
mysql_options(&mysql_connection, MYSQL_SET_CHARSET_NAME, default_charset);
|
||||
mysql_options(&mysql_connection, MYSQL_OPT_CONNECT_ATTR_RESET, 0);
|
||||
mysql_options4(&mysql_connection, MYSQL_OPT_CONNECT_ATTR_ADD,
|
||||
"program_name", "mysqlcheck");
|
||||
if (!(sock = mysql_real_connect(&mysql_connection, host, user, passwd,
|
||||
NULL, opt_mysql_port, opt_mysql_unix_port, 0)))
|
||||
{
|
||||
|
Reference in New Issue
Block a user