We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27672
    • 168 Posts
    "Checking MySQL client version: Failed! - You are running on MySQL 4.1.11, and MODx Revolution requires MySQL 4.1.20 or later. Please upgrade MySQL to at least 4.1.20."

    i get this error when i’m trying to install. in phpmyadmin i see the info in the picture below: ("Server version: 5.1.26-rc-5.1.26rc" and "MySQL client version: 4.1.11")

    i don’t recall what the settings have been on previous servers i’ve worked on, but on my work server both versions are the same. why would they be different on the mt (gs) server? is there any way i can get it to use the newer version instead of the old? anyone able to get revolution to work on a (gs) setup?

    when setting up databases, and when signing up with mediatemple it appears everything is 5.1.26, i never noticed this two versions thing until trying to install revolution yesterday. i hope there’s a work around, as their suggestion was to move up to a more expensive (dv) dedicated-virtual hosting package, and i’m not really making any money off of my server right now, so i don’t want to pay twice as much or have to start charging for the few sites i have up there now.
      • 1343 ☆ A M B ☆
      • 2,213 Posts
      If you contact support they may be able to help you to get a newer version installed.
        Patrick | Server Wrangler
        About Me: Website | Tweets |  MODX Hosting
        • 22303 MODX Staff
        • 10,725 Posts
        It’s very odd that they would be compiling PHP against MySQL libraries for 4.1.11 when providing clients with MySQL 5.1.x server instances.

        Regardless, you can go to setup/includes/modinstalltest.class.php and around line 120, change the version from 4.1.20 to 4.1.11; that should let you install and see if it works for you.
          • 27672
          • 168 Posts
          i had contacted them, but they aren’t able to just upgrade it because it’s one of those cheapy shared environments where it’d probably fix my problem, but break hundreds of other people’s applications. if i were to upgrade to a dedicated virtual server they said it’d be no problem, but it’s twice as much.

          i’ll try out the changing of the modinstalltest.class.php file - thanks for the tip! i certainly won’t run anything important in production using this hack, i really just want to play around with revolution and get familiar with it’s differences before it’s released (at which point maybe i’ll upgrade my server).
            • 17499 ☆ A M B ☆
            • 872 Posts
            Quote from: slush at Dec 31, 2009, 07:47 AM

            i had contacted them, but they aren’t able to just upgrade it because it’s one of those cheapy shared environments where it’d probably fix my problem, but break hundreds of other people’s applications. if i were to upgrade to a dedicated virtual server they said it’d be no problem, but it’s twice as much.

            i’ll try out the changing of the modinstalltest.class.php file - thanks for the tip! i certainly won’t run anything important in production using this hack, i really just want to play around with revolution and get familiar with it’s differences before it’s released (at which point maybe i’ll upgrade my server).

            Why don’t you try to install it locally then?
              • 2364
              • 73 Posts
              Or use VPS. MediatempleGS - brand = powerful unmanaged VPS. Try http://fsckvps.com/hosting/
              Choose Ubuntu (Debian).
              debian:~# sudo su
              debian:~# apt-get update
              debian:~# apt-get install mysql-server mysql-client
              debian:~# apt-get install apache2 apache2-mpm-prefork apache2-utils libexpat1 ssl-cert php5
              //for multiuser apache setup use apache2-mpm-itk instead apache2-mpm-prefork
              //then optional, but useful
              debian:~# apt-get install libapache2-mod-php5 php5 php5-cli php5-common php5-curl php5-dev php5-gd php5-imagick php5-mcrypt php5-memcache php5-mhash php5-mysql php5-pspell php5-snmp php5-sqlite php5-xmlrpc php5-xsl
              debian:~# apt-get install phpmyadmin

              1-2 minutes and you have functional ssh managed server
                • 27672
                • 168 Posts
                Why don’t you try to install it locally then?

                cause i’m lazy? just kidding (kinda), good point. i just cleaned out my computer to put windows 7 on it, but i have a linux partition on it, so maybe i will finally setup a local environment.
                  • 27672
                  • 168 Posts
                  Regardless, you can go to setup/includes/modinstalltest.class.php and around line 120, change the version from 4.1.20 to 4.1.11; that should let you install and see if it works for you.
                  i changed this:
                  $mysql_ver_comp = version_compare($mysqlVersion,'4.1.20','>=');

                  to:
                  $mysql_ver_comp = version_compare($mysqlVersion,'4.1.11','>=');

                  on line 120 as you suggested, and was able to install. thus far i’ve only logged into the admin and created one simple page, so i’m not sure if i’ll encounter any problems later on, but it works just fine on the most basic of levels! smiley
                    • 20850
                    • 15 Posts
                    depends this on any ressources MODx uses? Or is it only the setup which has problems with this different versions?
                      • 22303 MODX Staff
                      • 10,725 Posts
                      Quote from: nachtmeister at Feb 06, 2010, 10:54 AM

                      depends this on any ressources MODx uses? Or is it only the setup which has problems with this different versions?
                      It’s definitely not recommended to run mysql client versions that differ from your server version (especially ones as old as 4.x), as is the case here with MediaTemple GS. But you can get through the setup and test it yourself by making the change mentioned in that link.