• Hi,

    I’ve changed my domain name on my blog to come across a major problem! (Well for me any way)

    All the images I’ve uploaded look at my old domain and not /wp-content/uploads

    Is there any way to quickly fix this at all or am I going to have to go though all my blog posts or just upload copys to my old domain?

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • You can dump the database, do a search/replace on the url, drop the tables and then import the edited sql file.

    Thread Starter willas00

    (@willas00)

    Have just tried that and I get an error about a syntax.

    Is there any easier way without editing the mysql file as i am useless with sql?

    reference for any changes to WP directory structure or domain name http://codex.wordpress.org/Moving_WordPress

    Thread Starter willas00

    (@willas00)

    I’ve followed those instructions and when I go to re-import the database I get this

    Error
    SQL query:

    — phpMyAdmin SQL Dump
    — version 2.8.2.4
    http://www.phpmyadmin.net

    — Host: localhost:3306
    — Generation Time: Jun 22, 2009 at 10:22 AM
    — Server version: 5.0.79
    — PHP Version: 5.2.6

    — Database: thedevil_wordpress

    CREATE DATABASE thedevil_wordpress DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;

    MySQL said:

    #1007 – Can’t create database ‘thedevil_wordpress’; database exists

    Any one able to help? 😐

    It looks like there is a link in your sql that is trying to create the database and it fails because it’s already created. If you used phpMyAdmin and just exported the tables in the database, then you shouldn’t have that line in the sql to create the db.

    It may help if you view one of the videos in the following post and pay attention to the part where I export the db tables, search/replace in the sql file, and then import the tables back into the db.

    http://educhalk.org/blog/?p=82

    Thread Starter willas00

    (@willas00)

    COLLATE utf8_general_ci;
    USE thedevil_wordpress;

    and a CREATE was in mysql database.

    I removed that and it worked.

    Thanks for the help!

    Glad you got if fixed.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Domain CHange’ is closed to new replies.