EnglishFrenchSpanish

OnWorks favicon

mysqluserclone - Online in the Cloud

Run mysqluserclone in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command mysqluserclone that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


mysqluserclone - Clone Existing User to Create New User

SYNOPSIS


mysqluserclone [options] base_user new_user[:password][@host_name] ...

DESCRIPTION


This utility uses an existing MySQL user account on one server as a template, and clones
it to create one or more new user accounts with the same privileges as the original user.
The new users can be created on the original server or a different server.

To list users for a server, specify the --list option. This prints a list of the users on
the source (no destination is needed). To control how to display list output, use one of
the following values with the --format option:

· grid (default)

Display output in grid or table format like that of the mysql monitor.

· csv

Display output in comma-separated values format.

· tab

Display output in tab-separated format.

· vertical

Display output in single-column format like that of the \G command for the mysql
monitor.
OPTIONS

mysqluserclone accepts the following command-line options:

· --help

Display a help message and exit.

· --destination=<destination>

Connection information for the destination server in the format:
<user>[:<passwd>]@<host>[:<port>][:<socket>] or <login-path>[:<port>][:<socket>].

· --dump, -d

Display the GRANT statements to create the account rather than executing them. In this
case, the utility does not connect to the destination server and no --destination
option is needed.

· --format=<list_format>, -f<list_format>

Specify the user display format. Permitted format values are grid, csv, tab, and
vertical. The default is grid. This option is valid only if --list is given.

· --force

Drop the new user account if it exists before creating the new account. Without this
option, it is an error to try to create an account that already exists.

· --include-global-privileges

Include privileges that match base_user@% as well as base_user@host.

· --list

List all users on the source server. With this option, a destination server need not
be specified.

· --quiet, -q

Turn off all messages for quiet execution.

· --source=<source>

Connection information for the source server in the format:
<user>[:<passwd>]@<host>[:<port>][:<socket>]or <login-path>[:<port>][:<socket>].

· --verbose, -v

Specify how much information to display. Use this option multiple times to increase
the amount of information. For example, -v = verbose, -vv = more verbose, -vvv =
debug.

· --version

Display version information and exit.
NOTES

You must provide connection parameters (user, host, password, and so forth) for an account
that has the appropriate privileges to access all objects in the operation.

The account used to connect to the source server must have privileges to read the mysql
database.

The account used to connect to the destination server must have privileges to execute
CREATE USER (and DROP USER if the --force option is given), and privileges to execute
GRANT for all privileges to be granted to the new accounts.

For the --format option, the permitted values are not case sensitive. In addition, values
may be specified as any unambiguous prefix of a valid value. For example, --format=g
specifies the grid format. An error occurs if a prefix matches more than one valid value.

The path to the MySQL client tools should be included in the PATH environment variable in
order to use the authentication mechanism with login-paths. This will allow the utility to
use the my_print_defaults tools which is required to read the login-path values from the
login configuration file (.mylogin.cnf).
EXAMPLES

To clone joe as sam and sally with passwords and logging in as root on the local machine,
use this command:

$ mysqluserclone --source=root@localhost \
--destination=root@localhost \
joe@localhost sam:secret1@localhost sally:secret2@localhost
# Source on localhost: ... connected.
# Destination on localhost: ... connected.
# Cloning 2 users...
# Cloning joe@localhost to user sam:secret1@localhost
# Cloning joe@localhost to user sally:secret2@localhost
# ...done.

The following command shows all users on the local server in the most verbose output in
CSV format:

$ mysqluserclone --source=root@localhost --list --format=csv -vvv
# Source on localhost: ... connected.
user,host,database
joe,localhost,util_test
rpl,localhost,
sally,localhost,util_test
sam,localhost,util_test
joe,user,util_test

COPYRIGHT


Use mysqluserclone online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Psi
    Psi
    Psi is cross-platform powerful XMPP
    client designed for experienced users.
    There are builds available for MS
    Windows, GNU/Linux and macOS.. Audience:
    End Users...
    Download Psi
  • 2
    Blobby Volley 2
    Blobby Volley 2
    Official continuation of the famous
    Blobby Volley 1.x arcade game..
    Audience: End Users/Desktop. User
    interface: OpenGL, SDL. Programming
    Language: C++, Lua. C...
    Download Blobby Volley 2
  • 3
    SuiteCRM
    SuiteCRM
    SuiteCRM is the award-winning Customer
    Relationship Management (CRM)
    application brought to you by authors
    and maintainers, SalesAgility. It is the
    world�s mos...
    Download SuiteCRM
  • 4
    Poweradmin
    Poweradmin
    Poweradmin is a web-based DNS
    administration tool for PowerDNS server.
    The interface has full support for most
    of the features of PowerDNS. It has full
    support...
    Download Poweradmin
  • 5
    Gin Web Framework
    Gin Web Framework
    Gin is an incredibly fast web framework
    written in Golang that can perform up to
    40 times faster, thanks to its
    martini-like API and custom version of
    httprout...
    Download Gin Web Framework
  • 6
    CEREUS LINUX
    CEREUS LINUX
    CEREUS LINUX basado en MX LINUX con
    varios entornos de escritorios. This is
    an application that can also be fetched
    from
    https://sourceforge.net/projects/cereu...
    Download CEREUS LINUX
  • More »

Linux commands

  • 1
    aa-clickquery
    aa-clickquery
    aa-clickquery - program for querying
    click-apparmor DESCRIPTION: This program
    is used to query click-apparmor for
    information. USAGE: aa-clickquery
    --click-fra...
    Run aa-clickquery
  • 2
    aa-exec-click
    aa-exec-click
    aa-exec-click - program for executing
    click packages under confinement
    DESCRIPTION: This program is used to
    execute click package under AppArmor
    confinement. I...
    Run aa-exec-click
  • 3
    cpio
    cpio
    cpio - copy files to and from archives ...
    Run cpio
  • 4
    cpipe
    cpipe
    cpipe - copy stdin to stdout while
    counting bytes and reporting progress ...
    Run cpipe
  • 5
    FvwmSave
    FvwmSave
    FvwmSave - the Fvwm desktop-layout
    saving module ...
    Run FvwmSave
  • 6
    FvwmSave1
    FvwmSave1
    FvwmSave - the FVWM desktop-layout
    saving module ...
    Run FvwmSave1
  • More »

Ad