• I was trying out Textpattern and found an import script that would import all my wordpress stuff into it. I figured I could play with Textpattern in the background while my site still ran on WordPress. That all worked fine, but now index.php in WordPress can’t find the database. I checked in PHPMyAdmin and everything “looks” ok, all the posts and comments and table names and db name and such are still there, but it says it can’t find the database.
    Any ideas on how to fix this?

Viewing 14 replies - 1 through 14 (of 14 total)
  • What does it say in wp-config.php ?
    Does what it wants still really exist ?
    Did you create new tables for txp ?
    Did you use another directory for txp ?

    Thread Starter TMo

    (@tmo)

    wp-config.php hasn’t changed. I re-upped just to be sure though. It says it can’t find my db for wordpress, even though it has the correct name.
    Yeah, txp is in it’s own directory and it’s own database.
    Just for good measure, I triplechecked and re-upped it again and now I get
    ‘Forbidden
    You don’t have permission to access / on this server.’

    Thread Starter TMo

    (@tmo)

    And I checked .htaccess . . .it was empty, but I deleted it just in case. Same result.

    I tried to directly access the index.php but it said that its not there. Please check for it again. If you find that it still doesn’t work after putting up the index.php, then you might add the following in your .htaccess file:

    DirectoryIndex index.php

    Thread Starter TMo

    (@tmo)

    Would re-running setup wipe the db?

    Thread Starter TMo

    (@tmo)

    check https://tekmonki.com/fix-index.php to see the error. Changed index so I’m not advertising my db to the world.

    What does phpmyadmin say the name of the blog is ?

    Thread Starter TMo

    (@tmo)

    the db? tekmonki_com_blog
    all of that is correct. the only thing i can see is that the “settings” table is gone.

    Thread Starter TMo

    (@tmo)

    hello?

    “before I dropped everything in the db”
    ? What did you drop ?

    Thread Starter TMo

    (@tmo)

    As in deleted the DB.

    Thread Starter TMo

    (@tmo)

    Still curious if anyone has any ideas as to what happened and/or how to fix it, but I’ve just decided to switch over to Textpattern completely and see how it goes (so far, great!).
    Seems to do what I want a lot better, and the support here can be quite frustrating at times. Nothing personal, thanks to those who tried, but one response a day when your site is proper fooked isn’t gonna fly.

    You could have tried #irc.
    What I couldn’t get was the fact that your settings table had gone, and no tables can simply disappear – something made it go.
    If nothing else, take from this that before you mess with your site at all, no matter how trivial you think that will be, you must backup your database.
    Think of a database backup as an investment in how much you like your blog. If you like it a lot, backup accordingly.
    Good luck with TXP and why not check in with Stuart over at https://thebombsite.com ??

    Thread Starter TMo

    (@tmo)

    Thanks podz.
    Actually, I have access to a backup via my host, but I like to do things the hard way and try to figure out what went wrong.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Ooops. Can’t find DB’ is closed to new replies.