mysql-rename

command module
v0.0.0-...-caf122d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2016 License: GPL-2.0 Imports: 5 Imported by: 0

README

mysql-rename

Utility to rename MySQL databases; NOTE: it moves only tables, not the views and other structures (stored procedures/functions etc).

Usage

Usage:
  mysql-rename [OPTIONS]

Application Options:
      --mysql-dsn= MySQL Data Source Name URI (default: root@tcp(localhost:3306)/) [$MYSQL_DSN]
      --from=      Database to be renamed [$FROM]
      --to=        New database name [$TO]

Help Options:
  -h, --help       Show this help message

The source database will be dropped once all its tables have been moved and it's found to be empty at end of such moving operation.

Building

Once the source code is in a proper GOPATH directory structure, run:

glide up --no-recursive
make

The generated binary will be in dist/bin/mysql-rename.

License

GNU/GPLv2

Documentation

Overview

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program 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 this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program 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 this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL