16 #ifndef CLIENT_SETTINGS_INCLUDED
17 #define CLIENT_SETTINGS_INCLUDED
19 #error You have already included an client_settings.h and it should not be included twice
22 extern uint mysql_port;
23 extern char * mysql_unix_port;
30 #define CLIENT_CAPABILITIES (CLIENT_LONG_PASSWORD | \
32 CLIENT_TRANSACTIONS | \
33 CLIENT_PROTOCOL_41 | \
34 CLIENT_SECURE_CONNECTION | \
35 CLIENT_MULTI_RESULTS | \
36 CLIENT_PS_MULTI_RESULTS | \
37 CLIENT_PLUGIN_AUTH | \
38 CLIENT_PLUGIN_AUTH_LENENC_CLIENT_DATA | \
41 sig_handler my_pipe_sig_handler(
int sig);
42 void read_user_name(
char *
name);
43 my_bool handle_local_infile(
MYSQL *mysql,
const char *net_filename);
46 const char *filename,
const char *
group);
47 void mysql_detach_stmt_list(
LIST **stmt_list,
const char *func_name);
49 cli_mysql_real_connect(
MYSQL *mysql,
const char *host,
const char *user,
50 const char *passwd,
const char *db,
51 uint port,
const char *unix_socket,ulong client_flag);
53 void cli_mysql_close(
MYSQL *mysql);
61 int cli_unbuffered_fetch(
MYSQL *mysql,
char **row);
62 const char * cli_read_statistics(
MYSQL *mysql);
63 int cli_read_change_user_result(
MYSQL *mysql);
65 #ifdef EMBEDDED_LIBRARY
66 int init_embedded_server(
int argc,
char **argv,
char **groups);
67 void end_embedded_server();
71 extern int mysql_init_character_set(
MYSQL *mysql);