Mytop error

majdi33

Verified User
Joined
Oct 29, 2011
Messages
34
I am unable to run mytop. Any ideas on how to fix it guys ?

Cannot connect to MySQL server. Please check the:

* database you specified "admin_openxtt" (default is "")
* username you specified "da_admin" (default is "root")
* password you specified "MYda_adminPASSWD" (default is "")
* hostname you specified "localhost" (default is "localhost")
* port you specified "3306" (default is 3306)
* socket you specified "/tmp/mysqld.sock" (default is "")

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

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

Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

root@mothership:/#
 
you need the config file not the executable

Create a file as root in /root/.mytop and put:

Code:
user=da_admin
pass=DAPASS
host=localhost
db=mysql
delay=1
port=3306
socket=
batchmode=0
header=1
color=1
idle=1

Change the DAPASS with the pass listed in /usr/local/directadmin/conf/mysql.conf

Regards
 
had you put the correct password? Have you put the file in the correct location? Are you starting mytop as root (or the user where you put the file)?

Regards
 
here it is:
my %config = (
vt100 => 0,
batchmode => 0,
color => 1,
db => '',
database => '',
delay => 5,
filter_user => qr/.?/,
filter_db => qr/.?/,
filter_host => qr/.?/,
header => 1,
help => 0,
host => 'localhost',
idle => 1,
long_nums => 0,
mode => 'top',
prompt => 0,
pass => 'mydapassword',
password => '',
port => 3306,
resolve => 1,
socket => '',
sort => 0, # default or reverse sort ("s")
user => 'da_admin',
);
 
I would suggest you to remove and reinstall mytop (or restore this orignal file) and check with the /root/.mytop file ive suggested

Regards
 
Back
Top