When I enter ‘localhost’ as the database server in my code, it does not work

Don’t use localhost, or 127.0.0.1; rather, use: mysql1.simbahosting.co.uk.

Posted in: Questions about MySQL databases