Detailed Linux real-time monitoring of MySQL tools mtop

Source: Internet
Author: User
Tags mysql install perl linux

Required Modules:

Curses Http://cpan.Linuxforum.net/authors/id/G/GI/GIRAFFED

DBI distributed as Bundle::D bi:http://www.cpan.org/authors/id/timb

Dbd::mysql Http://www.cpan.org/modules/by-module/DBD

Getopt::long (distributed with Perl 5)

Net::D omain part of Libnet:http://www.cpan.org/authors/id/gbarr

# perl-e ' Use Curses '

# perl-e ' Use DBI '

# perl-e ' Use Dbd::mysql '

# perl-e ' Use Getopt::long '

# perl-e ' use Net::D omain '

No output is the module has been installed, there is an error is the corresponding module is not installed.

You can download the latest version of the corresponding module at the address given above.

To install the required Perl modules:

# tar ZXVF curses-x.xx.tar.gz

# CD Curses*

# Perl makefile.pl

# make

# make Install

Yum Warehouse has perl-dbi, so direct yum installation

# yum-y Install PERL-DBI

Because it is compiled and installed MySQL, we need to add the path of Lib to ld.so.conf

# vi/etc/ld.so.conf

/usr/local/mysql/lib/mysql

# Ldconfig

Although the Yum Warehouse has perl-dbd-mysql, but it relies on MySQL, so it is still compiled and installed

# tar ZXVF dbd-mysql-x.xxxx.tar.gz

# CD dbd-mysql*

# perl makefile.pl--mysql_config=/usr/local/mysql/bin/mysql_config

# make

# make Install

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.