Spectrum 10.x
There's a localhost record in the /etc/hosts file with the same IP address specified as the hostname of the machine. For example:
After commenting out the first line (# 10.111.222.333 localhost), the error message has stopped and OneClick can connect to MySQL.