I am trying to test my webpage files on my local machine. My index page's url is as follows: http://localhost:81/indexPage.php (I use port 81 instead of 80 since my database is on Wampserver). Although I am able to access my database with phpmyadmin, when I open my index page in the browser, I get the following php error message: "php_network_getaddresses: getaddrinfo failed: No such host is known"
What changes do I need to make in order for my page to access the DB?