The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unsupported MySQL version warning

Discussion in 'Database Discussions' 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:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    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.
     
Loading...

Share This Page