Hello @ju32,
The “Error establishing a database connection” issue could be due to three possible reasons:
- The database settings in
wp-config.php
are incorrect.
- The database doesn’t exist, or there are no tables in the database.
- The database server (MySQL) isn’t running.
For a more detailed guide on installing WordPress on your computer, you can follow the step-by-step instructions here: Learn WordPress – Local Install.
Or, for an easier setup, you can use a ready-to-go application like LocalWP. The installation steps for setting it up on a local computer are available here: Local by Flywheel – Getting Started.
Hope this helps.