Fuck WP-Cache

Status
Not open for further replies.

spyderman4g63

New member
Mar 8, 2007
313
2
0
Ohio
www.teamtutorials.com
I was trying to install WP-cach, and I had to make a change to wp-config.php.

When I went to the site after the change, it ran the initial setup process for some reason. I went and looked at my database and it is completely empty except for the hello world post. Wtf did I do?


I do have a backup I am working on trying to restore, but I will probably fuck it up to.
 


It's wordpress. A fucking piece of shit. Who knows what happened.

Probably not your fault aside from choosing to use wordpress.
 
scp, potentially, depending on your setup.

It's probably easiest just to use filezilla and connect in through SSH.
 
I restored the backup. What a great fucking "full backup". Well the home directory backups are by site, but for some reason the mysql backups are for the entire server. I am too afraid to restore them and screw up the rest of my sites. There goes my phpbay site, oh well.
 
This doesn't even make sense. I don't think WordPress even has code to delete its database tables. When you run the install script pointing at an existing database, it just runs a delta check and updates any tables to the latest version. It doesn't wipe stuff out and start over.

Maybe you pointed it to the wrong database when you edited wp-config, and it created fresh tables in that database? If so, editing the wp-config with the right database name would fix it...
 
Must be one of those ID 10 T errors....

It is my fault. I was using an editor in a new ftp program I downloaded and I think it may have change the file from acii to binary, or vise versa. Anyway wordpress acted like the wp-config file wasn't there and came up with the default screen: Name your blog and add an email address (i think). So I could have just went to my backup and restored wp-config.php and would have probably been fine. I didn't do that. I enter the blog name and email, figuring I could change everything later and point it to my existing DB. After this it completely cleared my database tables. All info gone.

I checked and the only databases where the informational schema and the 1 wordpress database.
 
The only tables there is even a DROP TABLE query anywhere in the WordPress core files are:

optionvalues
optiontypes
optiongroups
optiongroup_options
linkcategories
categories
link2cat
post2cat

These are tables that don't exist in new versions of WP, it's just cleaning up old ones, and the DROP code is in upgrade.php.

In other words, it's not possible that WP wiped out your data. Maybe you changed your table prefix this time around, and you have two sets of tables in that database?
 
Apparently, you just screwed up your wp-config files. While editing the wp-config file you must have edited the 'database prefix' - The default is wp_ and you must've changed it, thereby pointing your entire wordpress configuration to a database with non-existant tables.

Just goto your database via PHPmyadmin and see what it shows - you will find tables filled with data. Just re-edit your wp-config to use the pre-fix in your DB and you should be fine.
 
Status
Not open for further replies.