~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzleadmin.cc

  • Committer: Mark Atwood
  • Date: 2008-10-16 11:33:16 UTC
  • mto: (520.1.13 drizzle)
  • mto: This revision was merged to the branch mainline in revision 530.
  • Revision ID: mark@fallenpegasus.com-20081016113316-ff6jdt31ck90sjdh
an implemention of the errmsg plugin

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#include <sys/stat.h>
27
27
 
28
28
/* Added this for string translation. */
29
 
#include <drizzled/gettext.h>
 
29
#include <libdrizzle/gettext.h>
30
30
 
31
31
#define ADMIN_VERSION "8.42"
32
32
#define SHUTDOWN_DEF_TIMEOUT 3600               /* Wait for shutdown */
38
38
static uint32_t opt_connect_timeout, opt_shutdown_timeout;
39
39
static myf error_flags; /* flags to pass to my_printf_error, like ME_BELL */
40
40
 
41
 
using namespace std;
42
 
 
43
41
/*
44
42
  Forward declarations 
45
43
*/
80
78
   N_("Password to use when connecting to server. If password is not given it's asked from the tty."),
81
79
   0, 0, 0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
82
80
  {"port", 'P', N_("Port number to use for connection or 0 for default to, in "
83
 
   "order of preference, drizzle.cnf, $DRIZZLE_TCP_PORT, "
 
81
   "order of preference, my.cnf, $DRIZZLE_TCP_PORT, "
84
82
   "built-in default (" STRINGIFY_ARG(DRIZZLE_PORT) ")."),
85
83
   (char**) &tcp_port,
86
84
   (char**) &tcp_port, 0, GET_UINT, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
167
165
 
168
166
  MY_INIT(argv[0]);
169
167
  drizzle_create(&drizzle);
170
 
  load_defaults("drizzle",load_default_groups,&argc,&argv);
 
168
  load_defaults("my",load_default_groups,&argc,&argv);
171
169
  save_argv = argv;                             /* Save for free_defaults */
172
170
  if ((ho_error=handle_options(&argc, &argv, my_long_options, get_one_option)))
173
171
  {