Go to main content

man pages section 1: User Commands

Exit Print View

Updated: July 2017
 
 

my_print_defaults (1)

Name

my_print_defaults - display options from option files

Synopsis

my_print_defaults [options] option_group ...

Description

MY_PRINT_DEFAULTS(1)         MySQL Database System        MY_PRINT_DEFAULTS(1)



NAME
       my_print_defaults - display options from option files

SYNOPSIS
       my_print_defaults [options] option_group ...

DESCRIPTION
       my_print_defaults displays the options that are present in option
       groups of option files. The output indicates what options will be used
       by programs that read the specified option groups. For example, the
       mysqlcheck program reads the [mysqlcheck] and [client] option groups.
       To see what options are present in those groups in the standard option
       files, invoke my_print_defaults like this:

           shell> my_print_defaults mysqlcheck client
           --user=myusername
           --password=secret
           --host=localhost

       The output consists of options, one per line, in the form that they
       would be specified on the command line.

       my_print_defaults supports the following options.

       o   --help, -?

           Display a help message and exit.

       o   --config-file=file_name, --defaults-file=file_name, -c file_name

           Read only the given option file.

       o   --debug=debug_options, -# debug_options

           Write a debugging log. A typical debug_options string is
           d:t:o,file_name. The default is d:t:o,/tmp/my_print_defaults.trace.

       o   --defaults-extra-file=file_name, --extra-file=file_name, -e
           file_name

           Read this option file after the global option file but (on Unix)
           before the user option file.

       o   --defaults-group-suffix=suffix, -g suffix

           In addition to the groups named on the command line, read groups
           that have the given suffix.

       o   --login-path=name, -l name

           Read options from the named login path in the .mylogin.cnf login
           path file. A "login path" is an option group containing options
           that specify which MySQL server to connect to and which account to
           authenticate as. To create or modify a login path file, use the
           mysql_config_editor utility. See mysql_config_editor(1).

       o   --no-defaults, -n

           Return an empty string.

       o   --show, -s

           As of MySQL 5.7.8, my_print_defaults masks passwords by default.
           Use this option to display passwords in cleartext.

       o   --verbose, -v

           Verbose mode. Print more information about what the program does.

       o   --version, -V

           Display version information and exit.

COPYRIGHT
       Copyright (C) 1997, 2016, Oracle and/or its affiliates. All rights
       reserved.

       This documentation is free software; you can redistribute it and/or
       modify it only under the terms of the GNU General Public License as
       published by the Free Software Foundation; version 2 of the License.

       This documentation is distributed in the hope that it will be useful,
       but WITHOUT ANY WARRANTY; without even the implied warranty of
       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
       General Public License for more details.

       You should have received a copy of the GNU General Public License along
       with the program; if not, write to the Free Software Foundation, Inc.,
       51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or see
       http://www.gnu.org/licenses/.



ATTRIBUTES
       See attributes(5) for descriptions of the following attributes:


       +---------------+-------------------+
       |ATTRIBUTE TYPE | ATTRIBUTE VALUE   |
       +---------------+-------------------+
       |Availability   | database/mysql-57 |
       +---------------+-------------------+
       |Stability      | Uncommitted       |
       +---------------+-------------------+
SEE ALSO
       For more information, please refer to the MySQL Reference Manual, which
       may already be installed locally and which is also available online at
       http://dev.mysql.com/doc/.

AUTHOR
       Oracle Corporation (http://dev.mysql.com/).



NOTES
       This software was built from source available at
       https://java.net/projects/solaris-userland.  The original community
       source was downloaded from
       http://cdn.mysql.com/Downloads/MySQL-5.7/mysql-boost-5.7.17.tar.gz

       Further information about this software can be found on the open source
       community website at http://dev.mysql.com/.



MySQL 5.7                         11/26/2016              MY_PRINT_DEFAULTS(1)