KnowledgeTree database problem

We're having a problem with our KnowledgeTree Jumpbox. When you access it a page appears that says:

---
An Has Error Occurred

You have encountered a problem with your document management system.

Please contact your systems administrator.

[db_error: message="DB Error: connect failed" code=-24 mode=return level=notice prefix="" info=" [nativecode=Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)] ** Array"]
---

This happened last week, after which we upgraded to the latest KT Jumpbox and restored from a good backup. Ran fine all day yesterday, came in to this today.

Does this make sense to anyone? Are there database maintenance tools in KT that I can't see anywhere?

Thanks,
Stephen

Further...

This is kind of bizarre. I have a working KnowledgeTree JB so I compared. On the problem JB the directory /var/run/mysqld isn't there - it's just, well, gone. It does exist on the working copy. Help!

Further...

I attempted to connect with MySQL from SSH and got this:

mysql -u root -p
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)