• Resolved realish

    (@realish)


    I’m trying to upgrade from 2.5.1 to 2.9.

    I followed the upgrade instructions quite carefully. When I was done replacing files, I went to /wp-admin and was redirected to wp-admin/install.php.

    It thinks I’m trying a fresh install. Does this mean my database is gone? Is it just not recognizing it? Something wrong with my wp-config.php (I copied over the database settings per instructions)?

    Any ideas?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Something wrong with my wp-config.php (I copied over the database settings per instructions)?

    Did you also copy over the setting for the $table_prefix in wp-config.pyhp?

    Thread Starter realish

    (@realish)

    Michael, looking at my old wp-config (which I backed up), here it is in its entirety (w/ specifics x’d out):

    <?php
    // ** MySQL settings ** //
    define(‘DB_NAME’, ‘XXX’); // The name of the database
    define(‘DB_USER’, ‘XXX’); // Your MySQL username
    define(‘DB_PASSWORD’, ‘XXX’); // …and password
    define(‘DB_HOST’, ‘XXX’); // 99% chance you won’t need to change this value

    /* That’s all, stop editing! Happy blogging. */

    define(‘ABSPATH’, dirname(__FILE__).’/’);
    require_once(ABSPATH.’wp-settings.php’);
    ?>

    I don’t see any setting for table_prefix to copy over!

    In the new (current) wp-config, there’s this:

    /**
    * WordPress Database Table prefix.
    *
    * You can have multiple installations in one database if you give each a unique
    * prefix. Only numbers, letters, and underscores please!
    */
    $table_prefix = ‘wp_’;

    But that’s just how it came — I didn’t change anything.

    Use phpMyAdmin and look at your database. Look for the posts table that would hold your posts. If the name of that table is wp_posts, then your $table_prefix would be ‘wp_’, if the name of the posts tablee is xyw123_posts, then your $table_prefix would be ‘xyw123_’

    If the posts table is called ‘posts’ then you should use
    $table_prefix='';

    Thread Starter realish

    (@realish)

    I got this sorted out. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘After upgrade, sends me to install.php’ is closed to new replies.