I want to host my Wordpress site on my PC for sandbox editing. But the MySQL database seems to have errors when connecting localhost and the website database.

I have installed Apache and Wordpress, as was shown in this guide:

This guide shows how to create a new Wordpress site with a clean MySQL database. Everything works well up unlit here - the dummy website displays on http://localhost/wordpress.

When I try to import the .sql file downloaded from my website into MySql, it does not display any content. Perhaps I do not link the server and the database properly. Has anyone encountered a similar problem before?

Also I apologize if I have posted in a wrong section.