Title: how to know wordpress version from Database
Last modified: August 19, 2016

---

# how to know wordpress version from Database

 *  Resolved [naqib](https://wordpress.org/support/users/naqib/)
 * (@naqib)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/how-to-know-wordpress-version-from-database/)
 * I mean my front end is totaly dameged so how can I know my wordpress version 
   so that I reinstall the same version

Viewing 10 replies - 1 through 10 (of 10 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/how-to-know-wordpress-version-from-database/#post-1582443)
 * The database version number is in the wp_options table. You will need to check
   the Codex’s release notes for each version of WordPress to identify the db version
   number for each release.
 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/how-to-know-wordpress-version-from-database/#post-1582521)
 * Or alternatively open up `wp-includes/version.php`, the version is right near
   the top.
 *  [conorp](https://wordpress.org/support/users/conorp/)
 * (@conorp)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/how-to-know-wordpress-version-from-database/#post-1582526)
 * Why not just upgrade to the latest version? It wont affect anything.
 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/how-to-know-wordpress-version-from-database/#post-1582527)
 * Upgrading is not a solution to fixing broken installations.
 * You should never upgrade as an attempt to fix an error or corrupt install (it’s
   quite common though, and sometimes given as advice – i just don’t happen to agree
   with it).
 *  [conorp](https://wordpress.org/support/users/conorp/)
 * (@conorp)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/how-to-know-wordpress-version-from-database/#post-1582530)
 * > Upgrading is not a solution to fixing broken installations.
 * Care to share why? I’m interested
 *  [thisisedie](https://wordpress.org/support/users/thisisedie/)
 * (@thisisedie)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/how-to-know-wordpress-version-from-database/#post-1582532)
 * [@conorp](https://wordpress.org/support/users/conorp/)
 * For one thing, depending on how old the version in use is, you may need to do
   incremental upgrades to get to 3. For another, well, if there was a stain on 
   your ceiling from a water leak, would you just paint over it to fix the leak?
 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/how-to-know-wordpress-version-from-database/#post-1582534)
 * One example would be if you have data corruption in the database tables and an
   upgrade introduces a schema change, that won’t fix it, if anything it will make
   the issue worse, and possibly cause further data corruption.
 * Another example could be that your site gets hacked, the hacker messes with various
   database entries causing areas of the site not to work. Upgrading will certainly
   not help.
 * Sure there are also cases where an upgrade could help, one example would be when
   the cause of an error is due to the work load put onto the server (queries, page
   requests, etc..), and the software being updated has code enhancements in the
   new verion that lessens the server load.
 * It’s Apples for Oranges really, but i personally find upgrading is not a cure
   to fixing problem installations, tracking down the cause of the problem usually
   leads to the best solution (sometimes that solution maybe to upgrade, but not
   generally impo).
 * —
 * To summarize on the solution to the question asked (for anyone arriving here 
   later), you can check via the DB options table, the option named `version` contains
   the current version, or alternatively check the version in `wp-includes/version.
   php`.
 *  [conorp](https://wordpress.org/support/users/conorp/)
 * (@conorp)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/how-to-know-wordpress-version-from-database/#post-1582536)
 * Thanks guys 🙂 I’ve learnt my lession
 *  Thread Starter [naqib](https://wordpress.org/support/users/naqib/)
 * (@naqib)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/how-to-know-wordpress-version-from-database/#post-1582635)
 * Thanks a lot I learnt it and also we cha get it to see source of our website 
   in meta tag <meta description=”wordpress….”>
 *  [bonheddwr](https://wordpress.org/support/users/bonheddwr/)
 * (@bonheddwr)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/how-to-know-wordpress-version-from-database/#post-1582737)
 * Hi. My host has managed to delete all of our files from the server. The database
   thankfully is still intact. Unfortunately I do not have a copy of the files, 
   that is entirely my fault. I want to reinstall a fresh set of wordpress files,
   but have been told that I need to install the same version as was running. How
   can I find what that version was? I have a copy of the database as a .txt file,
   what exactly should I search for?
 * I’ve tried:
 * “To summarize on the solution to the question asked (for anyone arriving here
   later), you can check via the DB options table, the option named version contains
   the current version”
 * But even though there is a table called ‘wp_options’ there is no option named‘
   version’ Thanks for any help.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘how to know wordpress version from Database’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 10 replies
 * 6 participants
 * Last reply from: [bonheddwr](https://wordpress.org/support/users/bonheddwr/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/how-to-know-wordpress-version-from-database/#post-1582737)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
