Forums

What version info via database? (3 posts)

  1. mbaze
    Member
    Posted 2 years ago #

    Is there a way to find the version number from the database? My server files were deleted, and I'd like to restore to the same version, for now. Thanks.

  2. whooami
    Member
    Posted 2 years ago #

    sort of, wp-includes/version.php contains 2 lines ..

    one outputs the wordpress version, one holds a number that gets inserted into the database.

    for instance, inside the 2.2 version.php you'll see:

    $wp_version = '2.2';
    $wp_db_version = 5183;

    Inside the 2.0.10 file you'll see:

    $wp_version = '2.0.10';
    $wp_db_version = 3441;

    If you go into your database and run a simple query on your options table you can find the second number:

    SELECT *
    FROM 'YOUR_options'
    WHERE 'option_name' = "db_version";

    then you just need to go through the version.phps to find that number.

    http://wordpress.org/download/release-archive/

  3. mbaze
    Member
    Posted 2 years ago #

    Thanks much. I think that'll work. Cheers.

Topic Closed

This topic has been closed to new replies.

About this Topic