~dveeden/mysql-sandbox/mysql-sandbox

« back to all changes in this revision

Viewing changes to script_templates/samples/my

  • Committer: Giuseppe Maxia
  • Date: 2009-05-09 08:04:44 UTC
  • Revision ID: g.maxia@gmail.com-20090509080444-jy8a330el0mt425a
Tags: 3.0
- 3.0.00 GA release
- no code modification. Same codebase as 2.0.99f
- completed cookbook (41 recipes in MySQL::Sandbox::Recipes)
- added script_templates directory (No modification in current version, just preparation for 3.1.xx)
- added drafts directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/Users/gmax/usr/local/bin/bash
 
2
 
 
3
#-----------------------------------------
 
4
SBDIR="/Users/gmax/sandboxes/msb_5_1_34"
 
5
. "$SBDIR/sandbox_env"
 
6
#-----------------------------------------
 
7
 
 
8
if [ "$1" = "" ]
 
9
then
 
10
    echo "syntax my sql{dump|binlog|admin} arguments"
 
11
    exit
 
12
fi
 
13
 
 
14
SUFFIX=$1
 
15
shift
 
16
 
 
17
MYSQLCMD="$BASEDIR/bin/my$SUFFIX"
 
18
 
 
19
if [ -f $MYSQLCMD ]
 
20
then
 
21
    $MYSQLCMD --defaults-file=$SBDIR/my.sandbox.cnf "$@"
 
22
else
 
23
    echo "$MYSQLCMD not found "
 
24
fi
 
25