What is the filename (including path) of a WordPress database?

Table of Contents

I have local Wordpress database that got corrupt as a result of an abrupt power outage (I wasn't even editing it!).

Since the system I am dealing with is pretty static (and old), I just want to restore that database file (or collection of files) from a nightly backup.

But I don't know which files I should be restoring. The WordPress blog in question is installed under a local user account in an old Linux server (FC4).

I checked the wp-content directory, but apparently this is not where the content is:

~/public_html/wordpress/wp-content> ls -l total 24 -rw-r--r-- 1 ww4s ww4s 32 Nov 18 2005 index.php drwxr-xr-x 3 ww4s ww4s 4096 Jun 2 2006 plugins drwxr-xr-x 4 ww4s ww4s 4096 Mar 10 2006 themes

Any idea which file(s) I should be restoring and what their path is?

Source: Super User