• Ok, I think I made a mistake and I would like to know if there is any way to fix it.

    I have a website that used to work perfectly. I did another WP installation for another site and tried to use the same database, writing the same credentials in wp-config.php. It didn’t work, but I ended up getting the second site up and running.

    But the first one stopped working and is now showing the Error establishing a database connection, both for the website and for the dashboar area, with /wp-admin.

    Any ideas on how I could resolve this?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • If you want to use a database for 2 installations, you must distinguish them by the prefix. Project 1 could have the prefix wp1_, project 2 then wp2_. This separates the tables from each other.

    The message you get indicates to me that the database access data is incorrect. Compare exactly which are set and which are entered in the wp-config.php of both projects.

    • This reply was modified 8 months, 3 weeks ago by threadi.
Viewing 1 replies (of 1 total)
  • The topic ‘Error establishing a database connection (database used to another installation)’ is closed to new replies.