Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Unsupported MySQL version warning

Discussion in 'Database Discussion' started by Erik Figueiredo, Apr 30, 2015.

  1. Erik Figueiredo

    Joined:
    Jul 25, 2014
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Sao Paulo, Brazil, Brazil
    cPanel Access Level:
    Root Administrator
    Hi everyone,

    I would like to know if it is possible to hide the warning on cPanel? We are planing to ugrade the MySQL Server version soon, but we would like to hide it until it is not finished.

    This is the message and it appaers on the database creation page (frontend/x3/sql/index.html):
    This server is running an unsupported MySQL version (5.1). Ask your system administrator to upgrade MySQL to improve security and features.

    Thanks since now,
    Erik
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,305
    Likes Received:
    1,848
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I suggest upgrading MySQL rather than hiding the message, however, you could manually edit the following file:

    Code:
    /usr/local/cpanel/base/frontend/x3/sql/sql_version_warning.tmpl
    Comment out the following lines:

    Code:
    [% IF Mysql.show_update_warning %]
        <div class="error_details">
            [% locale.maketext('This server is running an unsupported MySQL version ([_1]). Ask your system administrator to upgrade MySQL to improve security and features.', mysql_version) %]
        </div>
    [% END %]
    Then, add the file to the /etc/cpanelsync.exclude file to ensure it's not overwritten. Note that these steps are unsupported, and you should only use them on a temporary basis until you can upgrade MySQL.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice