• Here is how I did it:
    1. Open wp-admin/import-b2.php
    2. Replace All The Content In That File With This File
    3. Open Up wp-settings.php
    4. Find
    if (!$wpdb->get_row("SELECT * FROM $tableoptions LIMIT 1") && !strstr($HTTP_SERVER_VARS['REQUEST_URI'], 'install.php')) {
    die("It doesn't look like you've installed WP yet. Try running install.php.");
    }

    And Replace It With
    //if (!$wpdb->get_row("SELECT * FROM $tableoptions LIMIT 1") && !strstr($HTTP_SERVER_VARS['REQUEST_URI'], 'install.php')) {
    // die("It doesn't look like you've installed WP yet. Try running install.php.");
    //}

    5. Point Your Browser To wp-admin/import-b2.php.
    6. You Will see some erros on top saying that some options things are not found. Just Ignore It.
    7. Scroll To The Bottom, anything after the wordpress logo is generated from the current page. So if you do not see any errors below the wordpress logo means You are on track.
    8. Go to wp-login.php and login and modify the settings immediately.
    Hope that helps.

Viewing 8 replies - 1 through 8 (of 8 total)
  • I’ve been trying to import my old b2 databases into nice new WP ones, so I followed these directions.
    Is there any way this could have broken my MYSQL access? This is the error I get for all three (2 non-wordpress DBs) of my DBs now:
    Can’t connect to local MySQL server through socket ‘/var/tmp/mysql.sock’ (2)
    Anybody know what’s going on?

    Thread Starter Lester Chan

    (@gamerz)

    hmm, nope there is no way ur mysql access can be broken.

    @steevak: Your Mysql server has shutdown. The error you see is the server telling you that there is no server to connect to. Ask your system admin to restart mysql, or the server itself. If its on your own server, and it is linux, use the following command at a shell (you have to be root):
    #> /etc/init.d/mysqld restart

    It’s already been started up. Thanks for you help though! I was a little worried I did some serious damage to my site. 🙂

    Thread Starter Lester Chan

    (@gamerz)

    no prob dude

    For me this process was rather involved, so I can’t quite remember all the steps. I did install 1.0 first (it created all the MySQL tables for wordpress) and then ran the importer for b2. I found that to import the b2 data you do need to change the table prefix setting in wp-config.php to “b2”. There are changes you need to make in it (fix a couple of URLs and such) unless that’s been fixed. If I remember correctly you need to add an include to one of the files but I can’t remember which one. Maybe GamerZ remembers…
    Good luck!

    thanx so much steevak for this info! i have one central question however: how about my blog running on b2 now. will it still work?
    usually new blog software imports data from the other blogs databases, means it creates a new one. this would be like overwriting my b2 db, or do i missunderstand?
    coz that would be my backup scenario, of course… just stay with b2 till wp actually imports and not just adopts the b2 database… maybe gamerz nows???

    roadancer

    (@roadancer)

    Ahem……
    Is there a working script I can run to convert all of my b2 database to whatever wordpress is using? Not a web ap that has to be tweaked, edited, massaged, but a script I can simply dump to mysql that will move everything?
    I’d love to migrate to wordpress, but I’m a unix geek, not a database guru. I’ll even settle for a database template that will allow me to figure out where to dump which tables from the b2 database to import them into wordpress.
    Otherwise it’s going to be a tedious process and a look for other blogware might be easier.
    -Roadie

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘OK I Did It. Upgrading From b2 0.6.1 To WordPress’ is closed to new replies.