• Host: InfinityFree
    WP Version: 6.2 set up
    Plugins deactivated

    I had not used my site for sometime. I also wanted to CHANGE subdomain name. Host does not allow name changes, so I added a new subdomain, and host actually adds that name as a directory in the root directory of the old subdomain.

    Checked database with phpMyAdmin: all content (post content) is present in browsing the deb. Read specific WP instructions to export db as sql file, just in case (you know how that goes)

    WordPress: downloaded 6.2, unzipped, installed under directory for new subdomain. Visited site for new subdomain. WP finds no wp-config.php asks for information to connect to database, reports all good on connection.

    Go to dashboard: the setup is the default for a new site! If it’s talking to the db, why didn’t it see the content and show posts from a couple of years ago, but the default no-site-content setup?

    Next steps, solutions to try?

    • This topic was modified 1 year, 7 months ago by stevepenner1960. Reason: missing words
Viewing 2 replies - 1 through 2 (of 2 total)
  • Is it currently your problem that you want to move your website data + database from your old subdomain to a new subdomain?

    We recommend that you do it without manual methods such as cloning from softaculous https://www.softaculous.com/docs/enduser/clone/ or moving wp all in one wp migration.

    If you want to move data manually to a new subdomain, you also need to move all data files to the new subdomain folder, then in the phpmyadmin wp-option on the home and site url sections, change to the new subdomain.

    @stevepenner1960

    There are a few possible issues that could have prevented the WordPress to detect the old data.

    Can you please:

    1. Double-check the wp-config.php file of your new WordPress installation. Ensure that it has the correct database name, database user, and password that matches your existing database.
    2. Check Table Prefix: In the wp-config.php file, there is a $table_prefix variable. This should match the prefix of your tables in your database. By default, it’s usually wp_, but it could be different. Check your tables in phpMyAdmin to confirm the prefix.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Not Finding My Content (Database) with New Subdomain Setup’ is closed to new replies.