make_replication_sandbox does not mention you can pass a path to tar ball

Bug #570112 reported by Simon J Mudd
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL Sandbox
Fix Committed
Undecided
Unassigned

Bug Description

The output of make_replication_sandbox is:

$ make_replication_sandbox
[***] server version required

    The MySQL Sandbox, version 3.0.09
    (C) 2006-2010 Giuseppe Maxia
syntax: /opt/local/bin/make_replication_sandbox [options]
    --upper_directory = name The directory containing the sandbox. (default: $SANDBOX_HOME (/Users/XXXXX/sandboxes))
    -r --replication_directory = name Where to install the sandbox replication system, under upper-directory
                                        default: (rsandbox)

    --server_version = name which version to install
    --sandbox_base_port = number The port number to use for the sandbox replication system.
                                        (Default: 11000 + version )

    --check_base_port Check that the ports are available
                                        (Default: disabled )

    --how_many_nodes|how_many_slaves = numberThe number of slaves to create.
                                        (Default: 2)

    -t --topology = name Sets a replication topology.
                                        Available: {standard|circular} (default: standard)

    --circular = number Sets circular replication with N nodes.
                                        (default: 0)

    --master_master set exactly two nodes in circular replication
    -v --verbose Use this option to see installation progress (default: disabled)
    --interactive Use this option to ask interactive user
                                        confirmation for each node (default: disabled)

    --help show this help (default: disabled)

Example:
     /opt/local/bin/make_replication_sandbox --my_file=large --sandbox_directory=my_sandbox

$

Note: there is no mention of the fact you can provide a path to the binary you want to use.

This _is_ mentioned in the man page of MySQL::Sandbox::Recipes:

MULTIPLE SERVER RECIPES
       Creating a standard replication sandbox

         make_replication_sandbox /path/to/tarball5.1.34.tar.gz

       As easy as making a single sandbox, this command creates a replication system with one master an two slaves. If you have set the repository under $SANDBOX_BINARY (see "Easily
       creating more sandboxes after the first one"), then you can also say

I would suggest that:

1. The make_replication_sandbox help output indicates that the /path/to/tarball.5.1.34.tar.gz is possible.
2. Also that if a version is given say: make_replication_sandbox 5.1.34
2(a) that it is clearer WHERE the script is looking for the tarballs,
2(b) that if not running as root the script can look in a local directory:

[sjmudd@m7 ~]$ make_replication_sandbox 5.1.34
installing and starting master
/opt/mysql does not exist
error installing the master

(512 )
[sjmudd@m7 ~]$

/opt/mysql may not be writeable by the non-root user, and indeed perhaps $HOME/opt/mysql or similar would be a good place to also search for these binaries ?

Revision history for this message
Giuseppe Maxia (giuseppe-maxia) wrote :

fixed in version 3.0.12

Changed in mysql-sandbox:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.