Hands off the WP Config!

The other day when I upgraded to WP 2.2.1, my WP config was screwed. To those who are not familiar with WordPress, wp config is the most important file because it is the only file that we need to make changes when we instal a new blog. It instructs the blog where to find your data.

So, my webmaster helped me to re-configure it back. Then, recently, I keep getting problems with log in into my dashboard and it keeps pointing to the pluggable and wp config. Therefore, after much reading and learning, I thought I am ready to solve the problem. But eheh, I missed on single most important point.

I had used Dreamweaver and notepad to open the file and after saving, my file is corrupted. I uploaded it to my site and suddenly, I see a screen that says it is a new intallation.

Now? I got a new blog and I do not know how to configure the wp-config.php so that it points to my old database. The database and password are the same but I think I have changed the format to ANSI because that’s what the option on Notepad says.

I make a comparison between WP 2.2.1 and my earlier version and it seems that there are several lines of code not found in the earlier version. Blek. I am through reading this instruction on WordPress and still cannot solve the problem. Craps. No more meddling with wp config anymore.

Post Author: lilian

4 thoughts on “Hands off the WP Config!

    Ah Pek

    (July 5, 2007 - 11:24 am)

    yalor.. last time oso i nearly kena, luckily i had it copied hand written in my diary word for word and symbol for symbol and also a version saved in Notepad.

    Now I make very sure the config file is left untouched when I upgrade. I just upgraded my Blog Rumble yesterday using the “crude” way and fortunately there was no problem. Dare not touch AhPek.com first lah.

    Luckily Bryan is around hor.

    Andrew Ooi

    (July 5, 2007 - 12:08 pm)

    It’s good to rename or make a duplicate of such file. For example, I will make a copy wp-config-bak.php to keep in the same directory. Or better yet, FTP the entire website files including all your plugins into your local hard disk. That’s what I’m starting to do now with all my blogs.

    HMTKSteve

    (July 5, 2007 - 10:32 pm)

    Use a proper text editing program and a proper FTP program to interact with your site and these problems will not happen. Using programs such as Dreamweaver and notepad may have cut it in the days of static htm pages but they will only bite you in the backside when dealing with todays MySQL/PHP driven sites.

    There is a reason big name web developers earn $2-5K for putting up a website.

    Tallfreak

    (July 6, 2007 - 1:23 pm)

    OMG I know! Last week I changed my MySQL password and my blog totally went down! The problem was WPConfig did not know the new password and so nothing was loading. Took me a while to figure that out.

Comments are closed.