Forums

[resolved] Install error with MySQL (6 posts)

  1. joesky
    Member
    Posted 2 years ago #

    I tried to install 2.2, but got an error in Step 2 saying that says: ERROR: WordPress 2.2 requires MySQL 4.0.0 or higher.

    I am running MySQL 4.1.20

    So, what do I do now?

  2. whooami
    Member
    Posted 2 years ago #

    are you POSITIVE thats the version you are running?

  3. joesky
    Member
    Posted 2 years ago #

    That is what is reported in phpMyAdmin

  4. whooami
    Member
    Posted 2 years ago #

    crack open wp-includes/upgrade-functions.php

    scroll down to line 1107

    you'll be right in the middle of the small function that checks your MySQL version

    immediately after this line:

    if ( version_compare($mysql_version, '4.0.0', '<') )

    put this:

    echo $mysql_version;

    and see what that comes back with.

  5. joesky
    Member
    Posted 2 years ago #

    Made the code change. In the wp-admin folder, not wp-includes folder. Well, it ran perfect this time. Did not report back the version number. So, who knows why it ran this time? Go Figure. Thanks for your help. I did call my service provider to confirm the MySQL version ... they confirmed the version number.

  6. whooami
    Member
    Posted 2 years ago #

    You cant just add a call to report back a variable like that just anywhere since it doesn't know how to get the variable. .. which is why i suggested putting it where I suggested :)

    No worries as you installed it though. Good luck :)

    In the future, if you are ever curious, and want to see the MySQL version in the footer or somewhere else, you have to tell it how to get the version:

    <?php
    $mysql_version = preg_replace('|[^0-9\.]|', '', @mysql_get_server_info());
    echo $mysql_version;
    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags