Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 16
  1. #1
    Member
    Join Date
    Jul 2004
    Posts
    55

    Default cpanel show wrong MySQL version

    Hello,

    please can somebody have fix for "cpanel show wrong MySQL version".

    We have 4.1.21 and that can I check via SSH or WHM but cpanel say:

    MySQL version 4.0.27-standard-log

    How to fix that?

    And here is more details:
    account is trasfered from older version MySQL, I wont to say others account via cpanel shown correct MySQL version so only one account that we restored from older server shown 4.0.27 standard.

    So, please cpanel stuff, can you make some tests and check that, please.

    And second the same problem are with PHP, we found fix for that:
    #fix php version
    pico /usr/local/apache/conf/php.version

    BUT question is for cpanel stuff, whay you dont fix that???
    This error is to old.

    bye, SC
    Last edited by shopcentar; 09-29-2006 at 04:27 PM.

  2. #2
    Member celliott's Avatar
    Join Date
    Jan 2006
    Location
    United Kingdom
    Posts
    460

    Default

    I agree this is an error which has been around for a long time. I have noticed this affects both PHP Version and MySQL version. On a few of my accounts I have MySQl 4.1.19 displayed in cPanel when 4.1.21 is actually installed on the server.

  3. #3
    Member
    Join Date
    Dec 2003
    Posts
    33

    Default

    /home/username/.cpanel-datastore/_usr_sbin_mysqld_--version


    That is the file you will want to change

    You can use:

    replace "/usr/sbin/mysqld Ver 4.0.27-standard for pc-linux-gnu on i686 (Official MySQL RPM)" "/usr/sbin/mysqld Ver 4.1.21-standard for pc-linux-gnu on i686 (MySQL Community Edition - Standard (GPL))" -- /home/*/.cpanel-datastore/_usr_sbin_mysqld_--version

    to fix

  4. #4
    Member
    Join Date
    Jul 2004
    Posts
    55

    Default

    great.

    many thanks!

    regards, SC

  5. #5
    Registered User
    Join Date
    Feb 2006
    Posts
    4

    Default

    If you have multiple users, you could use :

    Code:
    find ./*/.cpanel-datastore/ | grep _usr_sbin_mysqld_--version | awk '{system ("rm " $1)}'

  6. #6
    Member
    Join Date
    Nov 2005
    Posts
    64

    Arrow

    There's even easier way to fix wrong mysql version in cpanel:

    rm -f /home/*/.cpanel-datastore/_usr_sbin_mysqld_--version

    File will be recreated with actual data when user logs into cpanel.

    Enjoy!

  7. #7
    Member rogcan's Avatar
    Join Date
    Jun 2004
    Posts
    49

    Default

    Ive tried all of the above and it still shows the wrong version in phpmyadmin

    phpMyAdmin shows this >>> Server version: 5.0.27-standard MySQL client version: 4.1.10
    Cpanel shows this >>> MySQL version 5.0.27-standard
    SSH shows this >>> MySQL version 5.0.27-standard

    Anyone else have any ideas to fix what it should say for client version ??

  8. #8
    Member
    Join Date
    Jun 2007
    Posts
    9

    Default

    If you completely remove the datastore directory it will be recreated upon next login. This is a real quick fix for this problem:

    rm -rf /home/*/.cpanel/

    refresh your cpanel.

  9. #9
    Member rogcan's Avatar
    Join Date
    Jun 2004
    Posts
    49

    Default

    That doesnt work either

    I even had cPanel look at this problem and they couldnt resolve it.
    When they did fix it it came right back as soon as the next cpanel update was auto installed.

  10. #10
    Member
    Join Date
    Jun 2004
    Location
    amsterdam
    Posts
    267

    Default

    do /scripts/makecpphp. Phpmyadmin use the internal php version of cpanel

  11. #11
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Client version shown in phpMyAdmin is something totally different and has to
    do with your MySQL linking library version and not your MySQL version.

    You can just symlink to the newer library in /usr/lib to display the newer version

  12. #12
    Member
    Join Date
    May 2003
    Posts
    71

    Default

    Hello,

    What would be the exact command ? what's the name of the library to link ?

    ln -s ...

    I have the same problem after installing Mysql 5.0.45 but phpinfo and phpmyadmin are still showing the old version.
    The version 5.0.45 is correctly shown in WHM.

    Thanks,
    Francois

    EDIT: fixed by:

    # cd /usr/lib
    # cp libmysqlclient.* /usr/lib/mysql/
    # cd /usr/lib/mysql/

    then recompiling Php 5.2.3
    Last edited by Interdit; 08-11-2007 at 06:47 AM.

  13. #13
    Member velda's Avatar
    Join Date
    Aug 2005
    Location
    Utah
    Posts
    54

    Default

    Quote Originally Posted by rogcan View Post
    That doesnt work either

    I even had cPanel look at this problem and they couldnt resolve it.
    When they did fix it it came right back as soon as the next cpanel update was auto installed.
    Did you get this resolved? I've tried the tips here and am getting the same thing.
    Velda Christensen
    handsonwebhosting.com

  14. #14
    Member
    Join Date
    Jul 2005
    Location
    Belgium
    Posts
    78

    Default

    it is ....

    Code:
    /home/username/.cpanel/datastore 
    rm -rf _usr_sbin_mysqld_--version
    refresh your Cpanel and ...... voila

  15. #15
    Member velda's Avatar
    Join Date
    Aug 2005
    Location
    Utah
    Posts
    54

    Default

    Quote Originally Posted by cpanllover View Post
    it is ....

    Code:
    /home/username/.cpanel/datastore 
    rm -rf _usr_sbin_mysqld_--version
    refresh your Cpanel and ...... voila
    weird. I tried it; no dice. I am thinking this has to do with a cpanel skin issue I'm having so I'll go back to that
    Velda Christensen
    handsonwebhosting.com

Similar Threads & Tags
Similar threads

  1. phpmyadmin shows wrong mysql version
    By vashrf in forum Database Discussions
    Replies: 5
    Last Post: 09-27-2010, 02:29 PM
  2. cpanel shows wrong mysql version
    By SonicGT in forum Database Discussions
    Replies: 1
    Last Post: 03-18-2007, 04:25 PM
  3. cpanel show wrong php version.
    By [ah] phu in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 01-14-2005, 04:57 AM
  4. wrong mysql version
    By jkt in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-25-2004, 08:57 PM
  5. MySQL API Wrong version
    By kcdworks in forum cPanel and WHM Discussions
    Replies: 26
    Last Post: 07-19-2003, 05:11 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube