I hope you can help me to fix my problem.
I am using WordPress for the first time, and I don't know why I am getting Error establishing a database connection knowing that I have created the file wp-config.php by myself then I provided the information of my database. I create a virtual host because I need to work just in localhost.
for the information: I am using the above version below:
WordPress 5.5.1 / wampserver 3.2.3 / PHP 7.4.9 / MySQL 5.7.31
thank you for your support!!!