Thread Starter
TheCCE
(@thecce)
Okay, I’ve managed to find the data for both tables, within an SQL backup file.
Tobias, you you please let me know which part of the code I need to import as SQL in phpMyAdmin?
Here is what I believe to be the first line relating to the table:
INSERT INTO wp_options (option_id, blog_id, option_name, option_value, autoload) VALUES
(4257, 0, ‘wp_table_reloaded_data_3’,…
I tried copying everything down to the next INSERT INTO tag, but got a duplicate entry error:
Duplicate entry ‘_transient_timeout_feed_********’ for key 2
Two questions:
1) What code do I need to copy (and how do I avoid a duplicate entry error)?
2) Is there an easier way than importing the SQL to restore the tables?
Thanks very much!
Allan
Hi,
yes, the tables are in the SQL backup.
You will have one entry for each table, named like “wp_table_reloaded_data_X”, and you will have two more general entries, named “wp_table_reloaded_tables” and “wp_table_reloaded_options”.
All of those need to be re-inserted into your database.
The “_transient_timeout_feed_” entry that you mention seems to be an additional line in your backup file already, i.e. the next database row. I guess you selected too much text in the file.
The much easier way to restore tables is of course from a WP-Table Reloaded Dump file, the plugin’s custom backup file. But unfortunately you don’t have one and now it is too late to create one :-/
Regards,
Tobias
Thread Starter
TheCCE
(@thecce)
Thanks, Tobias. I’ll give this a try, and will be sure to create backup files after.
Is there some kind of configuration I need to do to have the SQL file import the table data properly, or can that only be done with a dump file via WP-Table Reloaded?
Allan
Hi,
no, there is nothing special that you need, just a database access tool, like phpMyAdmin. Then, execute the extracted parts of the SQL backup there, and the database rows will be added for you.
For a WP-Table Reloaded Dump file, you don’t need such extra database tool, the file is simply re-imported on the “Plugin Options” screen.
Regards,
Tobias