How to get site URL if database is disconnected?

One option is setting the site’s URL in the wp-config.php file itself. This effectively overrides the siteurl option that’s otherwise stored in the database, but it also means you can reference the URL without doing a query. From the Codex: It is possible to set the site URL manually in the wp-config.php file. Add these … Read more

Using source control with WordPress

Have a look at this older question: How to: Easily Move a WordPress Install from Development to Production?. It covers migration and deployment of WP installations. For your more immediate issue, do backups of your database. Use a backup plugin (WP-DB-Backup is what I use, find it on the WP plugins repository) to handle this … Read more

How to use multiple database in wordpress?

It is possible but you must manually create a new instance of the wpdb class with right settings for your other database. Quote from the wpdb Codex page: The $wpdb object can talk to any number of tables, but only one database: the WordPress database. In the rare case you need to connect to another … Read more

Corrupt WordPress Database

You’re probably running into the joys of MySQL’s MyISAM engine… From within MySQL (or PhpMyAdmin), use REPAIR TABLE xyz statements again, repeatedly, on each of your tables (or rather, your terms related tables, since these are the ones that sound corrupt) to see if this solves anything. If those fail, there are a few documented … Read more