I can't see the settings behind it, but this means that you have something wrong in your server settings or your server or database server aren't started and working on the machine.
Can you browse that page with: http://127.0.0.1/test/test1.php
The error implies that you couldn't and that you need to update the testing server to the correct URL so that you could.