~ubuntu-branches/ubuntu/maverick/mysql-5.1/maverick-proposed

« back to all changes in this revision

Viewing changes to client/mysqladmin.cc

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 14:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20120222141605-nxlu9yzc6attylc2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 2000-2006 MySQL AB
 
1
/*
 
2
   Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
2
3
 
3
4
   This program is free software; you can redistribute it and/or modify
4
5
   it under the terms of the GNU General Public License as published by
11
12
 
12
13
   You should have received a copy of the GNU General Public License
13
14
   along with this program; if not, write to the Free Software
14
 
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
 
15
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA
 
16
*/
15
17
 
16
18
/* maintaince of mysql databases */
17
19
 
23
25
#include <sys/stat.h>
24
26
#include <mysql.h>
25
27
#include <sql_common.h>
 
28
#include <welcome_copyright_notice.h>           /* ORACLE_WELCOME_COPYRIGHT_NOTICE */
26
29
 
27
30
#define ADMIN_VERSION "8.42"
28
31
#define MAX_MYSQL_VAR 512
416
419
 
417
420
      if (interval)                             /* --sleep=interval given */
418
421
      {
 
422
        if (opt_count_iterations && --nr_iterations == 0)
 
423
          break;
 
424
 
419
425
        /*
420
426
          If connection was dropped (unintentionally, or due to SHUTDOWN),
421
427
          re-establish it if --wait ("retry-connect") was given and user
687
693
    case ADMIN_VER:
688
694
      new_line=1;
689
695
      print_version();
690
 
      puts("Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.");
691
 
      puts("This software comes with ABSOLUTELY NO WARRANTY. This is free software,\nand you are welcome to modify and redistribute it under the GPL license\n");
 
696
      puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2000, 2011"));
692
697
      printf("Server version\t\t%s\n", mysql_get_server_info(mysql));
693
698
      printf("Protocol version\t%d\n", mysql_get_proto_info(mysql));
694
699
      printf("Connection\t\t%s\n",mysql_get_host_info(mysql));
1067
1072
static void usage(void)
1068
1073
{
1069
1074
  print_version();
1070
 
  puts("Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.");
1071
 
  puts("This software comes with ABSOLUTELY NO WARRANTY. This is free software,\nand you are welcome to modify and redistribute it under the GPL license\n");
 
1075
  puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2000, 2011"));
1072
1076
  puts("Administration program for the mysqld daemon.");
1073
1077
  printf("Usage: %s [OPTIONS] command command....\n", my_progname);
1074
1078
  my_print_help(my_long_options);