• 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    https://www.ads-software.com/download/release-archive/

    Thread Starter mbaze

    (@mbaze)

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘What version info via database?’ is closed to new replies.