• Followed instructions exactly:

    1] backed up, then deleted, all old WP files
    2] uploaded new files.
    3] ran wp-admin/upgrade.php.

    Most of that completed as expected, new wp-config.php file written as expected, then error – words to the effect of “You already have a database, please delete it first”.

    The instructions don’t say anything about deleting DB files and I’d be VERY reluctant to do so. Nor should it be necessary; it certainly wasn’t when I tested beta 2.7 on other existing sites last year.

    In the meantime I’ve reverted back to the old version, which is working fine.

Viewing 6 replies - 1 through 6 (of 6 total)
  • If WP generated a new wp-config then I’m assuming you deleted the old one contrary to upgrade instructions?

    Thread Starter rneuschul

    (@rneuschul)

    The upgrade instructions are fairly clear: I quote

    1. Delete your old WP files, saving ones you’ve modified.
    2. Upload the new files.
    3. Point your browser to /wp-admin/upgrade.php.

    The instructions do NOT say “leave the old wp-config.php in place” – they do say “delete all old WP files. Which is why I did not leave the old one there.

    If those instructions are wrong then I’d welcome correct guidance about how to upgrade from WP 2.3.3.

    The upgrade instructions are fairly clear

    that really depends on where you read, unfortuntely. Case in point:

    https://codex.www.ads-software.com/Upgrading_WordPress

    Step 1: Replace WordPress files

    1. Get the latest WordPress. Either download and extract it to your computer or download it directly to the server.
    1. As a reminder, to extract a tar.gz to a folder use this command, replacing (folder name) with the name of your folder: tar -xvzf latest.tar.gz -C ./(folder name)
    2. Delete your old wp-includes and wp-admin directories.
    3. Copy the new WordPress files to your server, overwriting old files in the root, except perhaps the wp-content folder (see “NOTE” below). You may use FTP or shell commands to do so. Note that this means *all* the files, including all the files in the root directory as well. If you use the default or classic theme and have customized it, then you can skip that theme.

    NOTE The wp-content folder requires special handling, as do the plugins and themes folders. You should copy over the contents of these folders, not the entire folder. In some cases, copying the entire folder may overwrite all your customizations and added content.

    Also take care to preserve the content of the wp-config.php file in the root directory. This file contains current settings for your existing installation, e.g. database sign-in information. Occasionally new versions of WordPress add statements to this file. (E.g. in version 2.5 the SECRET_KEY variable was added, see Extended upgrade instructions). Compare your existing file with the new installation file which is named wp-config-sample.php. Either transfer your settings to the sample-file and rename it to wp-config.php or copy the new statements from the sample file into your current file.

    If those instructions are wrong then I’d welcome correct guidance about how to upgrade from WP 2.3.3.

    you delete the core wordpress files.. core files being whats inside wp-includes/ and wp-admin/ and the wp-* that live in the root of your install, ie wp-settings.php, etc.. NOT to include your wp-config.php

    you upload the new files.

    you load the upgrade.php url in your browser.

    then we have this, of course, linked to above:

    Overview of the Upgrade Process

    1. Backup your database. Read Backing Up Your Database for a detailed explanation.
    2. Backup ALL your WordPress files in your WordPress directory. Don’t forget your .htaccess file.
    3. Verify the backups you created are there and usable. This is essential.
    4. Deactivate ALL your Plugins.
    5. Ensure first four steps are completed. Do not attempt the upgrade unless you have completed the first four steps.
    6. Download and extract the WordPress package from https://www.ads-software.com/download/.
    7. Delete the old WordPress files on your site, but DO NOT DELETE
    * wp-config.php file;
    * wp-content folder; Special Exception: the wp-content/cache and the wp-content/plugins/widgets folders should be deleted.
    * wp-images folder;
    * wp-includes/languages/ folder–if you are using a language file do not delete that folder;
    * .htaccess file–if you have added custom rules to your .htaccess, do not delete it;
    * robots.txt file–if your blog lives in the root of your site (ie. the blog is the site) and you have created such a file, do not delete it.

    Thread Starter rneuschul

    (@rneuschul)

    So basically the readme file contained in the distribution is wrong.

    Thanks for the help. I’ll give this a go.

    So basically the readme file contained in the distribution is wrong.

    for argument’s sake, no, it’s not.

    Delete your old WP files, saving ones you’ve modified.

    wp-config.php is a file that you modify. granted they dont spell it out for you, but that’s what the documentation is for, I reckon.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Upgrade to 2.7.1 fails – you have a DB already’ is closed to new replies.