I uninstalled and reinstalled PHP on my server (which was a bit of a painful exercise, but at least I succeeded)
I no longer get this error message but I still cannot connect. I am now going to reinstall sqlyog to see if that helps (at least I will know exactly where I am when I've done all that)