first double check that the xampp service is running and that you can access phpMyAdmin form the xampp start page.
if you can access phpMyAdmin from the xampp start page, double check the site settings to make sure the testing server is set correctly to connect to your local xampp server.
also, double check that the connection is using the localhost address for the xampp MySQL server.