Let memcache listen on all interfaces.
Use the MySQL client class on MySQL servers.