WordPress : How to fix critical error on your website during install

The other day, I was in the process of installing a WordPress website on my local Windows development machine, so I set up everything necessary and ran the WordPress installation page step by step. In the final step, after clicking Install WordPress button, the page was loading for a while and then an error message showed up telling me about the critical error on your website. In this article, I will show you how I found the cause of the issue and how I fixed it.