LoginSignup
1
1

More than 5 years have passed since last update.

MySQL sandbox note

Last updated at Posted at 2016-03-13

install

via centos7

mkdir bin && cd ~/bin
curl -LOk http://xrl.us/cpanm
chmod +x cpanm
which env
vim cpanm #<-- fix shebang

# perl mods via RPM
yum install perl-ExtUtils
yum install perl-ExtUtils-Install
yum install perl-Data-Dumper

# linux mods
yum install libaio

# cpanm other mods
./cpanm Test::More
./cpanm MySQL::Sandbox

And .bash_profile

PATH=$PATH:$HOME/.local/bin:$HOME/bin:/usr/local/bin

export PATH
export SANDBOX_AS_ROOT=1

use it!

curl -LO  http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.29-linux-glibc2.5-x86_64.tar.gz
make_replication_sandbox --how-many-slaves=2 mysql-5.6.29-linux-glibc2.5-x86_64.tar.gz

default --how-many-slaves = 2

login

sandboxes/rsandbox_mysql-5_6_29/node1/use

Refs

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1