• Resolved keslick69

    (@keslick69)


    I recently moved my WordPress database on my server and the database had a name change with the move.

    Now when I try to upload images, i get the following error message:

    “The uploaded file could not be moved to /home/<OLDDATABASENAME>/public_html/wp-content/uploads/2009/02.”

    Obviously WordPress is looking on the old database.

    I went in and updated the wp-config.php file with the new database name, but I am still getting the same error message. Is there anywhere else I need to make the update?

Viewing 4 replies - 1 through 4 (of 4 total)
  • /home/<OLDDATABASENAME>/public_html/wp-content/uploads/2009/02

    The OLDDATABASENAME you are referring to there has NOTHING to do with your database. It might be that what you say is your old database is the name of your hosting account, but again they are not the same thing. And you may have changed your database name and fixed wp-config.php to point to the new database, that’s good.

    Your problem is likely resolved by Changing File Permissions. Some hosts require wp-content and wp-content/uploads be 777 permissions.

    Thread Starter keslick69

    (@keslick69)

    Hi Michael,

    Thanks for the response! It isn’t the file permissions, as I am with the same host. I just moved my WordPress site from one CPanel to another within my own server. I did try updating them to 777, but that didn’t fix the problem.

    I changed the prefix of my database from olddatabasename_wp1 to newdatabasename_wp1, but the olddatabasename_wp1 is what shows on the error message in the upload folder. It is looking in the old location where my wordpress database was.

    Might reset uploads folder in Administration > Settings > Miscellaneous

    Thread Starter keslick69

    (@keslick69)

    Thats it! Thanks!

    Sorry, I even dug through the options and didn’t find anywhere to change it, must not have checked Miscellaneous.

    ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Problems Updating Database Name’ is closed to new replies.