UJP - 技術情報1

Life is fun and easy!

不正IP報告数

Okan Sensor
 
メイン
ログイン
ブログ カテゴリ一覧

MySQLのコマンドライン拡張ツールMaatkitをMacにインストールする

MySQLのコマンドライン拡張ツールMaatkitをMacにインストールする


0.改訂履歴

  • 2008.07.10 新規作成

1.はじめに

 このドキュメントでは,MySQLの管理を手助けつるツールの中から,主にレプリケーションを利用している環境で役に立つコマンドラ インのセットが用意されているMaatkitのインストール手順を説明する.

 Maatkitは,オライリーの"High Performance MySQL"の著者が作成したPerlのツール群であり,現在は以下の様なモジュールが用意されている.

  • $Revision: 1972 $
    • mk-archiver 1.0.9
    • mk-deadlock-logger 1.0.10
    • mk-duplicate-key-checker 1.1.6
    • mk-find 0.9.11
    • mk-heartbeat 1.0.9
    • mk-parallel-dump 1.0.8
    • mk-parallel-restore 1.0.7
    • mk-query-profiler 1.1.10
    • mk-show-grants 1.0.10
    • mk-slave-delay 1.0.7
    • mk-slave-find 1.0.1
    • mk-slave-move 0.9.1
    • mk-slave-prefetch 1.0.2
    • mk-slave-restart 1.0.7
    • mk-table-checksum 1.1.27
    • mk-table-sync 1.0.7
    • mk-visual-explain 1.0.8

  特に目立つのは,Slave関連のステータスを確認するツールである.

 なお,このインストール手順では,PerlでMySQLを扱う 為に,DBIおよびDBD::mysqlライブラリのインストールも行っている. ライブラリの場所が違う為,インストール中にNo library found for -lmysqlclientというエラーが出る場合があり,それに対処している.

 今回用いた環境はMacOS X 10.5.4へインストールされた,MySQL 5.0.45環境である.

2.モジュールの入手

  • 以下のサイトから入手する.
    • Maatkit: a toolkit of utilities and tools for MySQL
  • ダウンロードしたファイルを確認する.
iMac-G5:Downloads ujpadmin$ ls -la maatkit-1972.tar.gz 
-rw-r--r--@ 1 ujpadmin staff 383658 6 2 13:30 maatkit-1972.tar.gz
iMac-G5:Downloads ujpadmin$ ls -lah maatkit-1972.tar.gz
-rw-r--r--@ 1 ujpadmin staff 375K 6 2 13:30 maatkit-1972.tar.gz
iMac-G5:Downloads ujpadmin$
  • ファイル自体は小さな物である.
  • アーカイブを展開して,中身を確認する.
iMac-G5:Downloads ujpadmin$ tar xfz maatkit-1972.tar.gz 
iMac-G5:Downloads ujpadmin$ cd maatkit-1972
iMac-G5:maatkit-1972 ujpadmin$ ls -la
total 152
drwxr-xr-x@ 12 ujpadmin staff 408 6 2 13:24 .
drwx------ 21 ujpadmin staff 714 7 9 15:33 ..
-rw-r--r--@ 1 ujpadmin staff 19071 6 2 13:24 COPYING
-rw-r--r--@ 1 ujpadmin staff 34640 6 2 13:24 Changelog
-rw-r--r--@ 1 ujpadmin staff 1045 6 2 13:24 INSTALL
-rw-r--r--@ 1 ujpadmin staff 504 6 2 13:24 MANIFEST
-rw-r--r--@ 1 ujpadmin staff 393 6 2 13:24 Makefile.PL
-rw-r--r--@ 1 ujpadmin staff 427 6 2 13:24 README
drwxr-xr-x@ 21 ujpadmin staff 714 6 2 13:24 bin
drwxr-xr-x@ 4 ujpadmin staff 136 6 2 13:24 lib
-rw-r--r--@ 1 ujpadmin staff 1480 6 2 13:24 maatkit.spec
drwxr-xr-x@ 3 ujpadmin staff 102 6 2 13:24 udf
iMac-G5:maatkit-1972 ujpadmin$
  • モジュールは,Perlで作成されている事がわかる.

3.MAATKITをインストール

  • 展開されたディレクトリに,インストール説明用ファイルがあるので,確認してみる.
iMac-G5:maatkit-1972 ujpadmin$ cat INSTALL 
== INSTALLATION

To install maatkit, choose one of the following methods:

===== INSTALL FROM A TARBALL

If you install from the tarball, extract the tarball and go into the
resulting
directory:

tar zxvf <package>-<version>.tar.gz
cd <package>-<version>

Generate the makefile, which will check Perl module dependencies and so
forth:

perl Makefile.PL

Install the program and man page:

make install

To remove the files, simply run:

make uninstall

To install to a directory other than your system's default, such as your home
directory, generate the Makefile with a prefix:

perl Makefile.PL PREFIX=~

===== ON MICROSOFT WINDOWS

Simply unpack the zip or tarball file from Sourceforge and run the scripts
from
within a command prompt.

== DOCUMENTATION

Documentation is embedded in each program in POD, the Perl documentation
format. To read the documentation, issue `perldoc <program>' where <program>
is the Perl script itself.
iMac-G5:maatkit-1972 ujpadmin$
  • ごく普通のインストール方法となる.makeを行う.
iMac-G5:maatkit-1972 ujpadmin$ perl Makefile.PL
Checking if your kit is complete...
Looks good
Warning: prerequisite DBD::mysql 1 not found.
Writing Makefile for maatkit
iMac-G5:maatkit-1972 ujpadmin$
  • 現在のこの環境では,DBDライブラリが足りない模様.
  • CPANを利用して,Perl-DBDモジュールをインストールする.

4.Perl DBIをCPANを使ってインストール

  • DBDをインストールする前に,DBIのインストールが必要となる.
  • また,DBIをインストールする際には,root権限が必要となる場合があるので,作業時のアカウントについて確認する.
  • インストールは,CPANを使う.
sh-3.2# perl -MCPAN -e shell

cpan shell -- CPAN exploration and modules installation (v1.7602)
ReadLine support enabled

cpan> install DBI
CPAN: Storable loaded ok
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
  • インストール完了まで,しばらく待つ.
Installing /usr/local/share/man/man3/TASKS.3pm
Installing /usr/local/share/man/man3/Win32::DBIODBC.3pm
Installing /usr/bin/dbilogstrip
Installing /usr/bin/dbiprof
Installing /usr/bin/dbiproxy
Writing /Library/Perl/5.8.8/darwin-thread-multi-2level/auto/DBI/.packlist
Appending installation info to /System/Library/Perl/5.8.8/darwin-thread-multi-
2level/perllocal.pod
/usr/bin/make install -- OK

cpan>
  • 再度実行して,インストールされているか確認する.
cpan> install DBI 
DBI is up to date.

cpan>
  • これでDBIのインストールが完了.

5.Perl DBD::mysqlのインストール

  • 続いて,DBDのインストールを行う.
  • DBD::mysqlは,MySQLのインストール状態によって,想定している環境と異なるとCPAN Shellからのインストールが失敗するので,ソースコードを取得してインストールを行う.
  • CPANのサイトから,DBD::mysqlを ダウンロードする.
    • CPAN
  • モジュールを探す際には,以下のURLが良い.
  • ダウンロードしたファイルは,以下の通り.
    iMac-G5:Downloads ujpadmin$ ls -la DBD-mysql-4.007.tar.gz 
    -rw-r--r--@ 1 ujpadmin staff 123516 5 12 00:56 DBD-mysql-4.007.tar.gz
    iMac-G5:Downloads ujpadmin$
  • アーカイブを展開して,ファイルを確認する.
    iMac-G5:Downloads ujpadmin$ tar xfz DBD-mysql-4.007.tar.gz 
    iMac-G5:Downloads ujpadmin$ cd DBD-mysql-4.007
    iMac-G5:DBD-mysql-4.007 ujpadmin$ ls -la
    total 608
    drwxr-xr-x@ 19 ujpadmin staff 646 5 12 00:54 .
    drwx------ 25 ujpadmin staff 850 7 9 17:01 ..
    -rwxr-xr-x@ 1 ujpadmin staff 56147 5 12 00:54 ChangeLog
    -rwxr-xr-x@ 1 ujpadmin staff 29283 5 12 00:54 INSTALL.html
    -rw-r--r--@ 1 ujpadmin staff 1117 5 12 00:24 MANIFEST
    -rw-r--r--@ 1 ujpadmin staff 41 1 4 2007 MANIFEST.SKIP
    -rw-r--r--@ 1 ujpadmin staff 380 5 12 00:54 META.yml
    -rwxr-xr-x@ 1 ujpadmin staff 24189 5 12 00:52 Makefile.PL
    -rw-r--r--@ 1 ujpadmin staff 713 12 24 2006 Makefile.PL.embedded
    -rwxr-xr-x@ 1 ujpadmin staff 2781 1 7 2007 README
    -rw-r--r--@ 1 ujpadmin staff 896 12 24 2006 TODO
    -rwxr-xr-x@ 1 ujpadmin staff 1948 12 6 2007 constants.h
    -rwxr-xr-x@ 1 ujpadmin staff 128042 4 29 08:36 dbdimp.c
    -rwxr-xr-x@ 1 ujpadmin staff 10173 4 29 08:36 dbdimp.h
    drwxr-xr-x@ 15 ujpadmin staff 510 7 9 17:01 eg
    drwxr-xr-x@ 4 ujpadmin staff 136 5 12 00:54 lib
    -rwxr-xr-x@ 1 ujpadmin staff 1709 1 4 2007 myld
    -rwxr-xr-x@ 1 ujpadmin staff 17286 4 29 08:36 mysql.xs
    drwxr-xr-x@ 39 ujpadmin staff 1326 7 9 17:01 t
    iMac-G5:DBD-mysql-4.007 ujpadmin$
  • perl Makeを行う.
iMac-G5:DBD-mysql-4.007 ujpadmin$ perl Makefile.PL
Can't exec "mysql_config": No such file or directory at Makefile.PL line 76.

Cannot find the file 'mysql_config'! Your execution PATH doesn't seem
not contain the path to mysql_config. Resorting to guessed values!
Can't exec "mysql_config": No such file or directory at Makefile.PL line 466.
  • mysql_configが見つからない為にインストールが進められないようである.
  • ファイルがどこにあるか探す.
iMac-G5:DBD-mysql-4.007 ujpadmin$ locate mysql_config
/Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.DeveloperTools.
docset/Contents/Resources/Documents/documentation/Darwin/Reference/ManPages/man1
/mysql_config.1.html
/usr/local/mysql-5.0.45-osx10.4-i686/bin/mysql_config
/usr/local/mysql-5.0.45-osx10.4-i686/man/man1/mysql_config.1
iMac-G5:DBD-mysql-4.007 ujpadmin$
  • ファイルへのパスを追加する.
Mac-G5:DBD-mysql-4.007 ujpadmin$ export PATH=$PATH:/usr/local/mysql-5.0.45-osx10.
4-i686/bin/
iMac-G5:DBD-mysql-4.007 ujpadmin$
  • 再度perl Makeを行う.
iMac-G5:DBD-mysql-4.007 ujpadmin$ perl Makefile.PL

PLEASE NOTE:

For 'make test' to run properly, you must ensure that the
database user 'ujpadmin' can connect to your MySQL server
and has the proper privileges that these tests require such
as 'drop table', 'create table', 'drop procedure', 'create procedure'
as well as others.

mysql> grant all privileges on test.* to 'ujpadmin'@'localhost' identified by 's3
kr1t';

You can also optionally set the user to run 'make test' with:

perl Makefile.pl --testuser=username

I will use the following settings for compiling and testing:

cflags (mysql_config) = -I/usr/local/mysql/include/mysql -Os -arch i386
-fno-common
embedded (mysql_config) =
libs (mysql_config) = -L/usr/local/mysql/lib/mysql -lmysqlclient -lz
-lm
mysql_config (guessed ) = mysql_config
nocatchstderr (default ) = 0
nofoundrows (default ) = 0
ssl (guessed ) = 0
testdb (default ) = test
testhost (default ) =
testpassword (default ) =
testsocket (default ) =
Use of uninitialized value in printf at Makefile.PL line 171, <PIPE> line 93.
testuser ( ) = ujpadmin

To change these settings, see 'perl Makefile.PL --help' and
'perldoc INSTALL'.

Note (probably harmless): No library found for -lmysqlclient
Multiple copies of Driver.xst found in: /Library/Perl/5.8.8/darwin-thread-multi-
2level/auto/DBI/ /System/Library/Perl/Extras/5.8.8/darwin-thread-multi-2level/
auto/DBI/ at Makefile.PL line 759
Using DBI 1.605 (for perl 5.008008 on darwin-thread-multi-2level) installed in /
Library/Perl/5.8.8/darwin-thread-multi-2level/auto/DBI/
Writing Makefile for DBD::mysql
iMac-G5:DBD-mysql-4.007 ujpadmin$
  • mysqlclientライブラリが無いというエラーがでている.
  • 実際にライブラリを探すと,次の様に入っている.
iMac-G5:DBD-mysql-4.007 ujpadmin$ locate mysqlclient
/usr/local/mysql-5.0.45-osx10.4-i686/lib/libmysqlclient.15.0.0.dylib
/usr/local/mysql-5.0.45-osx10.4-i686/lib/libmysqlclient.15.dylib
/usr/local/mysql-5.0.45-osx10.4-i686/lib/libmysqlclient.a
/usr/local/mysql-5.0.45-osx10.4-i686/lib/libmysqlclient.dylib
/usr/local/mysql-5.0.45-osx10.4-i686/lib/libmysqlclient_r.15.0.0.dylib
/usr/local/mysql-5.0.45-osx10.4-i686/lib/libmysqlclient_r.15.dylib
/usr/local/mysql-5.0.45-osx10.4-i686/lib/libmysqlclient_r.a
/usr/local/mysql-5.0.45-osx10.4-i686/lib/libmysqlclient_r.dylib
iMac-G5:DBD-mysql-4.007 ujpadmin$
  • Makefileのヘルプを確認する.
iMac-G5:DBD-mysql-4.007 ujpadmin$ perl Makefile.PL --help
Usage: perl Makefile.PL [options]

Possible options are:

--cflags=<flags> Use <flags> for running the C compiler; defaults
to the value of "mysql_config --cflags" or a guessed
value
--libs=<libs> Use <libs> for running the linker; defaults
to the value of "mysql_config --libs" or a gussed
values
--embedded=<libs> Build embedded version of DBD and use <libs> for this;
defaults to the value of "mysql_config --embedded"
(default: off)
--testdb=<db> Use the database <db> for running the test suite;
defaults to test
--testuser=<user> Use the username <user> for running the test suite;
defaults to no username
--testpassword=<pwd> Use the password <pwd> for running the test suite;
defaults to no password
--testhost=<host> Use <host> as a database server for running the
test suite; defaults to localhost.
--testport=<port> Use <port> as the port number of the database;
by default the port number is choosen from the
mysqlclient library
--mysql_config=<path> Specify <path> for mysql_config script
(Not supported on Win32)
--nocatchstderr Supress using the "myld" script that redirects
STDERR while running the linker.
--nofoundrows Change the behavior of $sth->rows() so that it
returns the number of rows physically modified
instead of the rows matched
--ps-protocol Toggle the use of driver emulated prepared statements
prepare, requires MySQL server >= 4.1.3 for
server side prepared statements, off by default
--force-embedded Force to build embedded version of driver
--ssl Enable SSL support
--help Print this message and exit

All options may be configured on the command line. If they are
not present on the command line, then mysql_config is called (if
it can be found):

mysql_config --cflags
mysql_config --libs
mysql_config --embedded
mysql_config --testdb

and so on. See the INSTALL.html file for details.
iMac-G5:DBD-mysql-4.007 ujpadmin$
  • Perl Makeにオプションをつける事で,MySQL関連ライブラリの場所を指定することができる.
  • libsに指定すべきパスは,以下の様にmysql_configコマンドで調べることができる.
iMac-G5:DBD-mysql-4.007 ujpadmin$ mysql_config --libs

iMac-G5:DBD-mysql-4.007 ujpadmin$
  • 同じ様に,clflagsについても調べる.
iMac-G5:DBD-mysql-4.007 ujpadmin$ mysql_config --cflags
-I/usr/local/mysql-5.0.45-osx10.4-i686/include -Os -arch i386 -fno-common
iMac-G5:DBD-mysql-4.007 ujpadmin$
  • これまでに調べたmysql_configの位置やライブラリの位置をオプションで指定してPerl Makeを行う.
  • なお,パラメータが多いので,範囲を示す為にダブルクォートで囲って指定する.
iMac-G5:DBD-mysql-4.007 ujpadmin$ perl Makefile.PL "--mysql_config=/usr/local/
mysql-5.0.45-osx10.4-i686/bin/mysql_config" "--cflags=-I/usr/local/mysql-5.0.45-
osx10.4-i686/include -Os -arch i386 -fno-common" "--libs=-L/usr/local/mysql-5.0.
45-osx10.4-i686/lib -lmysqlclient -lz -lm"


PLEASE NOTE:

For 'make test' to run properly, you must ensure that the
database user 'ujpadmin' can connect to your MySQL server
and has the proper privileges that these tests require such
as 'drop table', 'create table', 'drop procedure', 'create procedure'
as well as others.

mysql> grant all privileges on test.* to 'ujpadmin'@'localhost' identified by 's3
kr1t';

You can also optionally set the user to run 'make test' with:

perl Makefile.pl --testuser=username

I will use the following settings for compiling and testing:

cflags (User's choice) = -I/usr/local/mysql-5.0.45-osx10.4-i686/include
-Os -arch i386 -fno-common
embedded (mysql_config ) =
libs (User's choice) = -L/usr/local/mysql-5.0.45-osx10.4-i686/lib -
lmysqlclient -lz -lm
mysql_config (Users choice ) = /usr/local/mysql-5.0.45-osx10.4-i686/bin/mysql
_config
nocatchstderr (default ) = 0
nofoundrows (default ) = 0
ssl (guessed ) = 0
testdb (default ) = test
testhost (default ) =
testpassword (default ) =
testsocket (default ) =
Use of uninitialized value in printf at Makefile.PL line 171, <PIPE> line 91.
testuser ( ) = ujpadmin

To change these settings, see 'perl Makefile.PL --help' and
'perldoc INSTALL'.

Multiple copies of Driver.xst found in: /Library/Perl/5.8.8/darwin-thread-multi-
2level/auto/DBI/ /System/Library/Perl/Extras/5.8.8/darwin-thread-multi-2level/
auto/DBI/ at Makefile.PL line 759
Using DBI 1.605 (for perl 5.008008 on darwin-thread-multi-2level) installed in /
Library/Perl/5.8.8/darwin-thread-multi-2level/auto/DBI/
Writing Makefile for DBD::mysql
iMac-G5:DBD-mysql-4.007 ujpadmin$
  • ライブラリを認識して,問題なく週流した模様..
  • makeを行う.
iMac-G5:DBD-mysql-4.007 ujpadmin$ make
cc -c -I/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/DBI -I/usr/local/
mysql-5.0.45-osx10.4-i686/include -Os -arch i386 -fno-common -DDBD_MYSQL_INSERT_
ID_IS_GOOD -g -arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN

〜略〜

chmod 755 blib/arch/auto/DBD/mysql/mysql.bundle
cp mysql.bs blib/arch/auto/DBD/mysql/mysql.bs
chmod 644 blib/arch/auto/DBD/mysql/mysql.bs
Manifying blib/man3/DBD::mysql.3pm
Manifying blib/man3/DBD::mysql::INSTALL.3pm
Manifying blib/man3/Bundle::DBD::mysql.3pm
iMac-G5:DBD-mysql-4.007 ujpadmin$
  • 問題なく完了.
  • インストールを行う.
iMac-G5:DBD-mysql-4.007 ujpadmin$ make install
Warning: You do not have permissions to install into /usr/local/share/man/man3
at /System/Library/Perl/5.8.8/ExtUtils/Install.pm line 114.
Installing /Library/Perl/5.8.8/darwin-thread-multi-2level/auto/DBD/mysql/mysql.
bundle
Files found in blib/arch: installing files in blib/lib into architecture
dependent library tree
Writing /Library/Perl/5.8.8/darwin-thread-multi-2level/auto/DBD/mysql/.packlist
Can't open file /Library/Perl/5.8.8/darwin-thread-multi-2level/auto/DBD/mysql/.
packlist: Permission denied at /System/Library/Perl/5.8.8/ExtUtils/Install.pm
line 209
make: *** [pure_site_install] Error 13
iMac-G5:DBD-mysql-4.007 ujpadmin$
  • 権限無しエラーなので,rootユーザにスイッチする.
Mac-G5:DBD-mysql-4.007 ujpadmin$ su
Password:
sh-3.2# make install
Files found in blib/arch: installing files in blib/lib into architecture
dependent library tree
Writing /Library/Perl/5.8.8/darwin-thread-multi-2level/auto/DBD/mysql/.packlist
Appending installation info to /System/Library/Perl/5.8.8/darwin-thread-multi-2
level/perllocal.pod
sh-3.2#
  • インストールできた模様.
  • 確認の為に,CPANのシェルに入ってみる.
sh-3.2# exit
iMac-G5:maatkit-1972 ujpadmin$ perl -MCPAN -e shell

cpan shell -- CPAN exploration and modules installation (v1.7602)
ReadLine support enabled

cpan> install DBD::mysql
CPAN: Storable loaded ok
Going to read /Users/ujpadmin/.cpan/Metadata
Database was generated on Wed, 09 Jul 2008 05:03:08 GMT
DBD::mysql is up to date.

cpan>
  • 最新版として認識されている事がわかる.

6.再度MAATKITをインストールする

  • 先ほど,DBDが無いというエラーで停止していたが,インストールしたのでMAATKITのインストールを行う.
iMac-G5:maatkit-1972 ujpadmin$ pwd
/Users/ujpadmin/Downloads/maatkit-1972
iMac-G5:maatkit-1972 ujpadmin$ perl Makefile.PL
Writing Makefile for maatkit
iMac-G5:maatkit-1972 ujpadmin$
  • インストールを行う.
iMac-G5:maatkit-1972 ujpadmin$ make install
cp bin/mk-slave-prefetch blib/script/mk-slave-prefetch
/usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/mk-slave-
prefetch
cp bin/mk-query-profiler blib/script/mk-query-profiler


〜略〜

Warning: You do not have permissions to install into /usr/local/share/man/man1
at /System/Library/Perl/5.8.8/ExtUtils/Install.pm line 114.
Writing /Library/Perl/5.8.8/darwin-thread-multi-2level/auto/maatkit/.packlist
Appending installation info to /System/Library/Perl/5.8.8/darwin-thread-multi-2
level/perllocal.pod
/bin/sh: /System/Library/Perl/5.8.8/darwin-thread-multi-2level/perllocal.pod:
Permission denied
make: [doc_site_install] Error 1 (ignored)
iMac-G5:maatkit-1972 ujpadmin$
  • rootユーザにスイッチして,インストールを実施する.
iMac-G5:maatkit-1972 ujpadmin$ su
Password:
sh-3.2# make install
Writing /Library/Perl/5.8.8/darwin-thread-multi-2level/auto/maatkit/.packlist
Appending installation info to /System/Library/Perl/5.8.8/darwin-thread-multi-2
level/perllocal.pod
sh-3.2#
  • 問題なくインストールされた模様.

7.インストールモジュールの確認

  • インストールされたモジュールを,確認する.
sh-3.2# ls -la
total 224
drwxr-xr-x@ 15 ujpadmin staff 510 7 10 11:02 .
drwx------ 25 ujpadmin staff 850 7 9 17:01 ..
-rw-r--r--@ 1 ujpadmin staff 19071 6 2 13:24 COPYING
-rw-r--r--@ 1 ujpadmin staff 34640 6 2 13:24 Changelog
-rw-r--r--@ 1 ujpadmin staff 1045 6 2 13:24 INSTALL
-rw-r--r--@ 1 ujpadmin staff 504 6 2 13:24 MANIFEST
-rw-r--r-- 1 ujpadmin staff 33551 7 10 11:02 Makefile
-rw-r--r--@ 1 ujpadmin staff 393 6 2 13:24 Makefile.PL
-rw-r--r--@ 1 ujpadmin staff 427 6 2 13:24 README
drwxr-xr-x@ 21 ujpadmin staff 714 6 2 13:24 bin
drwxr-xr-x 8 ujpadmin staff 272 7 9 18:52 blib
drwxr-xr-x@ 4 ujpadmin staff 136 6 2 13:24 lib
-rw-r--r--@ 1 ujpadmin staff 1480 6 2 13:24 maatkit.spec
-rw-r--r-- 1 ujpadmin staff 0 7 9 18:52 pm_to_blib
drwxr-xr-x@ 3 ujpadmin staff 102 6 2 13:24 udf
sh-3.2#
  • binディレクトリを確認する.
sh-3.2# cd bin
sh-3.2# ls -la
total 2736
drwxr-xr-x@ 21 ujpadmin staff 714 6 2 13:24 .
drwxr-xr-x@ 15 ujpadmin staff 510 7 10 11:02 ..
-rwxr-xr-x@ 1 ujpadmin staff 116691 6 2 13:24 mk-archiver
-rwxr-xr-x@ 1 ujpadmin staff 26346 6 2 13:24 mk-checksum-filter
-rwxr-xr-x@ 1 ujpadmin staff 47987 6 2 13:24 mk-deadlock-logger
-rwxr-xr-x@ 1 ujpadmin staff 70498 6 2 13:24 mk-duplicate-key-checker
-rwxr-xr-x@ 1 ujpadmin staff 58695 6 2 13:24 mk-find
-rwxr-xr-x@ 1 ujpadmin staff 63230 6 2 13:24 mk-heartbeat
-rwxr-xr-x@ 1 ujpadmin staff 116249 6 2 13:24 mk-parallel-dump
-rwxr-xr-x@ 1 ujpadmin staff 55321 6 2 13:24 mk-parallel-restore
-rwxr-xr-x@ 1 ujpadmin staff 25963 6 2 13:24 mk-profile-compact
-rwxr-xr-x@ 1 ujpadmin staff 64564 6 2 13:24 mk-query-profiler
-rwxr-xr-x@ 1 ujpadmin staff 38170 6 2 13:24 mk-show-grants
-rwxr-xr-x@ 1 ujpadmin staff 43199 6 2 13:24 mk-slave-delay
-rwxr-xr-x@ 1 ujpadmin staff 51056 6 2 13:24 mk-slave-find
-rwxr-xr-x@ 1 ujpadmin staff 53791 6 2 13:24 mk-slave-move
-rwxr-xr-x@ 1 ujpadmin staff 74245 6 2 13:24 mk-slave-prefetch
-rwxr-xr-x@ 1 ujpadmin staff 72358 6 2 13:24 mk-slave-restart
-rwxr-xr-x@ 1 ujpadmin staff 142859 6 2 13:24 mk-table-checksum
-rwxr-xr-x@ 1 ujpadmin staff 166878 6 2 13:24 mk-table-sync
-rwxr-xr-x@ 1 ujpadmin staff 71849 6 2 13:24 mk-visual-explain
sh-3.2#
  • これで終了.


広告スペース
Google