Unable to login to mysql after the fireware update - mysqli::real_connect(): (HY000/2002): Connection refused

Then I suggest manually reinstalling the latest My Cloud OS5 firmware.