Page 1 of 1

MTOP question - cant find socket

PostPosted: Tue Jul 24, 2012 1:15 pm
by KeithHBW
I built my database server on opensuse 12.1 with mysql 5.1.

I attempt to run mtop but I get the error:
Unable to connect to mysql [Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)]
at main(/usr/local/bin/mtop:535)

The socket is at /var/run/mysql/mysql.sock
It is also stated as that in my my.cnf file
How do I get mtop to point to the correct location or not point at a socket at all.

Re: MTOP question - cant find socket

PostPosted: Wed Jul 25, 2012 11:58 am
by williamconley
mtop has its own configuration file. that file is pointing to /tmp/mysql.sock (or not pointing at all, and it defaults to that). You could try finding the mtop configuration file and altering it.

But: as this server is not stock and you have not installed Vicidial on the server in question (just mysql), I would say this is a question for a mysql forum or an mtop forum (or even a mytop forum if you want to use that one instead).

Of course, you COULD copy the configuration from a working Vicidial server ...

Re: MTOP question - cant find socket

PostPosted: Wed Jul 25, 2012 2:24 pm
by KeithHBW
Good thinking. But incase someone else has this problem in the future I used this to get around it:
mtop --host=192.168.x.x --dbuser=cron --password=1234