Thanks, as far as I can tell, wp-config is correct – I connected with the db with mysql workbench using the same credentials.
It appears that the permissions hadn’t been granted, but even after granting full admin rights to the user, it still won’t connect.
Localhost is looking for (or can’t access the db -I can access the db through the command line & mysql workbench, so why can’t localhost?). How can I tell where is it looking?
Thanks