Community Forums
Connect with us on LinkedIn
  
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Jun 2003
    Posts
    42

    Default mytop

    I am having some problem on my server since mysql will cause server over-loaded.

    Then I found mytop from:
    http://forums.cpanel.net/showthread.php?t=41138

    and get it at:
    http://jeremy.zawodny.com/mysql/mytop/

    But after installation, while I try to run mytop,
    I get:

    Cannot connect to MySQL server. Please check the:

    * database you specified "test" (default is "test")
    * username you specified "root" (default is "root")
    * password you specified "" (default is "")
    * hostname you specified "localhost" (default is "localhost")
    * port you specified "3306" (default is 3306)
    * socket you specified "" (default is "")

    The options my be specified on the command-line or in a ~/.mytop
    config file. See the manual (perldoc mytop) for details.

    Here's the exact error from DBI. It might help you debug:

    Unknown database 'test'

    Can anyone help?

  2. #2
    Member
    Join Date
    Dec 2003
    Posts
    84

    Default

    use vi or pico to create a file called /root/.mytop and add:

    Code:
    user=root
    pass=
    host=localhost
    db=mysql
    delay=5
    port=3306
    socket=
    batchmode=0
    header=1
    color=1
    idle=1
    then run mytop as root again and it should work.

Similar Threads & Tags
Similar threads

  1. Mytop not working after upcp
    By Dardan in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 04-23-2009, 08:30 PM
  2. MyTop
    By jman_ in forum cPanel Developers
    Replies: 2
    Last Post: 11-23-2008, 06:41 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube