Forums

Transfer Of WP Installation Error establishing a database connection- (5 posts)

  1. holdendavies
    Member
    Posted 9 months ago #

    Greetings all;

    I am attempting to help a friend, who is only slightly less knowledgeable than I.

    In his attempt to move his WordPress installation from an old hosting account to a new, he simply copied the entire domain directory from his public_html directory to his hard drive, and then uploaded it to his new hosting account public_html directory. He now gets;

    Error establishing a database connection

    I have read a number of past posts, but none of them seem to exactly deal with a problem created in this manner. I would appreciate any assistance. I am not very knowledgeable regarding hosting accounts, etc., so feel free to be simplistic in your replies.

    Thank you.

  2. fonglh
    Member
    Posted 9 months ago #

    The database details are in wp-config.php

    These have to be edited to point to the database server of his new host. He can ask the host for details.

    If he still has access to his old host, the database must be backed up and exported as well. Or else he will find all his content gone.

    See http://codex.wordpress.org/Moving_WordPress

  3. holdendavies
    Member
    Posted 9 months ago #

    He does not have access to his old host. So, if I understand this correctly, the domain directory itself does not include the database? The database is elsewhere?

    Thank you.

  4. The database has nothing to do with the domain; the database is host-based. If he doesn't have access to the old hosting account and they already deleted the account, the database is gone, and so is the post/page content. Themes, images and plugins are file-based and are moved with wp-content. Post/page content, settings, etc., are in the database.

    See Moving WordPress « WordPress Codex

  5. holdendavies
    Member
    Posted 9 months ago #

    Thank you very much for confirming this.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.