PDA

View Full Version : how to?



adamp
04-29-2007, 11:37 AM
how I can to see the usage of mysql.

not
top

because is blockade

h2d
04-29-2007, 12:16 PM
how I can to see the usage of mysql.

not

because is blockade

check out a program in ports called mytop

adamp
04-29-2007, 01:22 PM
this is VPS and the function top is blockade

smtalk
04-29-2007, 01:33 PM
Why don't you use http://jeremy.zawodny.com/mysql/mytop/ ?

floyd
04-29-2007, 01:45 PM
This is a little off topic but I didn't know that top was normally blocked in vps. I am running vps's using both OpenVZ and XEN and neither block top by default.

adamp
04-30-2007, 08:30 AM
this is not defult the owner of VPS block this

adamp
04-30-2007, 08:41 AM
Why don't you use http://jeremy.zawodny.com/mysql/mytop/ ?

I install mytop look i have Warning in the install
and after how i USE the MYTOP?
what i need to write that i can use with this


server# tar -zxvf mytop-1.6.tar.gz
mytop-1.6/
mytop-1.6/MANIFEST
mytop-1.6/test.pl
mytop-1.6/mytop
mytop-1.6/Changes
mytop-1.6/INSTALL
mytop-1.6/README
mytop-1.6/Makefile.PL
mytop-1.6/META.yml
server# cd mytop-1.6
server# perl Makefile.PL
Checking if your kit is complete...
Looks good
Warning: prerequisite DBD::mysql 1 not found.
Warning: prerequisite DBI 1.13 not found.
Warning: prerequisite Term::ReadKey 2.1 not found.
Writing Makefile for mytop
server# make
cp mytop blib/script/mytop
/usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/mytop
Manifying blib/man1/mytop.1
server# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
1..1
ok 1
server# make install
Installing /usr/local/man/man1/mytop.1
Installing /usr/local/bin/mytop
Writing /usr/local/lib/perl5/site_perl/5.8.2/mach/auto/mytop/.packlist
FreeBSD: Registering installation in the package database
Appending installation info to /usr/local/lib/perl5/5.8.2/mach/perllocal.pod

h2d
04-30-2007, 08:43 AM
like i said originally

Install it from ports ! :)
cd /usr/ports/databases/mytop
make && make install && make clean

then

mytop -u da_admin -p

adamp
04-30-2007, 11:55 AM
like i said originally

Install it from ports ! :)
cd /usr/ports/databases/mytop
make && make install && make clean

then

mytop -u da_admin -p

server# cd /usr/ports/databases/mytop
/usr/ports/databases/mytop: No such file or directory.
make && make install && make cleanserver# make && make install && make clean
make: no target to make.

h2d
04-30-2007, 12:31 PM
u will need to install ports

adamp
05-04-2007, 02:28 AM
u will need to install ports

how i can do this?

h2d
05-04-2007, 02:34 AM
how i can do this?

type

sysinstall

and goto Configure
then goto Distributions
scroll down list when u get to ports hit the space bar which should select ports
then goto OK
then it will ask u were to install them from, try find an FTP that works and it should install the ports system
once its complete, exit sysinstall and then proceed to follow previous instructions