That was the issue. I’d set up the user incorrectly using ‘localhost’ and ‘< RDS endpoint >’ hosts. Switched this to ‘%’ and I no longer get that error.
(Although I get a new error! - Error: Table 'nextcloud.oc_appconfig' doesn't exist)
Thanks Reiner_Nippes