WordPress.org

Ready to get started?Download WordPress

Forums

Error establishing a connection to the database (9 posts)

  1. Creatrix
    Member
    Posted 1 year ago #

    HI,
    I've migrated my site from one to domain to another and since i've moved it i get the error message 'error establishing a connection to the database'.
    I've moved wordpress sites before but never encountered this problem.
    It's now on an apache server (not sure if that makes a difference?) and i haven't changed anything in the wp-config file so theoretically it should still work - its just that all the links would still point to the old domain until i do a search and replace.
    Has anyone encountered this problem before or know what may be causing it?
    Any advice would be appreciated.

  2. veggera
    Member
    Posted 1 year ago #

    Cat you try re-compile Apache ?

  3. Creatrix
    Member
    Posted 1 year ago #

    I'm new to apache servers so have no idea what that means i'm afraid! Is that something that is likely to be causing the issue?

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    Check the database details with the new hosts.

  5. veggera
    Member
    Posted 1 year ago #

    May you ask from your hosting company to do that for you!

  6. Creatrix
    Member
    Posted 1 year ago #

    so do i need to move the database as well now its on a different server? i.e. i cant keep it hosted where it is already and just update all the links?

  7. esmi
    Forum Moderator
    Posted 1 year ago #

    I seriously doubt it. Most hosts do not allow database access from outside a server. Perhaps you need to review Moving_WordPress?

  8. Creatrix
    Member
    Posted 1 year ago #

    ok thanks. so the best step from here would be to log in to my new hosts control panel and create a new database using the tables from my old site?

  9. esmi
    Forum Moderator
    Posted 1 year ago #

    Just create an empty database and a new user.

Topic Closed

This topic has been closed to new replies.

About this Topic