Skip to main content
We are aware of an issue after updating cPanel that causes cPanel SOLR to not start. Please see the following article for more information and updates:
Recent update including tzdata-java causes cPanel SOLR to not start.

Question about "MySQL service is currently configured to listen on all interfaces"

Comments

10 comments

  • kgs

    Hey cPRex do you have any thoughts on this? Thanks!

     

    0
  • cPRex Jurassic Moderator

    Hey there!  Their advice is taken straight from our guide, so it's fine to implement that change to restrict the access:

    https://support.cpanel.net/hc/en-us/articles/360051220893-Security-Advisor-shows-the-warning-The-MySQL-service-is-currently-configured-to-listen-on-all-interfaces

     

    0
  • kgs

    Seems like my web host was recommending the opposite of what the cPanel guide says, which is why I was confused.

    So, if it were you, you would restrict the access?

    0
  • cPRex Jurassic Moderator

    Ah, I misread what they were saying.

    Restricted always is always better in my mind than wide-open access.  Unless you need MySQL listening for remote connections all the time, you can make that change.

    0
  • kgs

    Thank you, cPRex !

     

    0
  • kgs

    So, I looked at the instructions and then opened my /etc/my.cnf file. The instructions say "Change the bind-address value to 127.0.0.1." Here is what's currently in my my.cnf file:

    [mysqld]
    disable-log-bin=1
    default-authentication-plugin=mysql_native_password
    innodb_file_per_table=1
    performance-schema=0
    # unix_socket=OFF
    open_files_limit=40000
    mysqlx=0
    max_allowed_packet=268435456
    sql_mode="ONLY_FULL_GROUP_BY,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION"
    tmp_table_size=122M
    sort_buffer_size=524288
    max_heap_table_size=122M
    read_buffer_size=262144
    key_buffer_size=134M
    read_rnd_buffer_size=524288
    join_buffer_size=1M
    innodb_log_file_size=512M
    innodb_buffer_pool_instances=2
    innodb_buffer_pool_size=2G
    ~
    ~
    ~
    "my.cnf" 20L, 558C

    So, am I just supposed to add the line

    bind-address=127.0.0.1

    anywhere in the file?

    Thanks!

    0
  • cPRex Jurassic Moderator

    Yes, anywhere in that "mysqld" will work just fine.

    0
  • kgs

    I apologize, but I don't understand what you mean. You don't mean inside

    [mysqld]

    like

    [mysqld bind-address=127.0.0.1]

    do you? Rather, you mean anywhere beneath the line

    [mysqld]

    ? Is that right?

    0
  • cPRex Jurassic Moderator

    The latter - a separate line, under the mysqld section.

    0
  • kgs

    Thank you! I will give it a try.

    0

Please sign in to leave a comment.