Skip to main content

Problem with my.cnf

Comments

10 comments

  • SysSachin
    Hello, Are you getting any error while restarting the MySQL service ?
    0
  • cPanelPeter cPanel Staff
    Hello, The /root/.my.cnf file should only contain your log in credentials. [client] user=root password=PASS1 All other MySQL configurations (such as socket) should be in /etc/my.cnf Please also review the /var/lib/mysql/$HOSTNAME.err log file to see what is happening with MySQL.
    0
  • paszczak000
    There is no error with MySQL. On standard instalation of MySQL everything is wokring fine. Problem is with CPanel setup. Your scripts don't like section for example [clientbackup].
    0
  • cPanelMichael
    Your scripts don't like section for example [clientbackup].

    Hello :) Backup authentication details are not supported if you are manually inputting them into the /root/.my.cnf file. Instead, if your goal is to automatically switch to different remote MySQL server in the event the first one is down, then you could setup a script that replaces the existing information in the /root/.my.cnf file. Thank you.
    0
  • paszczak000
    No, the problem is that some scripts in CPanel are reading .my.cnf credentials from wrong sections. Probably mysqlconnectioncheck is using details from [clientbackup] instead of [client] section where is user root.
    0
  • cPanelMichael
    There's no support for custom sections in the /root/.my.cnf file at this time. Could you elaborate on the purpose of the additional section so we can offer an alternative? Thank you.
    0
  • paszczak000
    Hi, can you add this support? We are using it for our additonal monitoring scripts and backups. We need this sections.
    0
  • cPanelMichael
    You can open a feature request for this via: Submit A Feature Request Thank you.
    0
  • paszczak000
    OK, but i don't have there Invite Code.
    0
  • cPanelMichael
    You can leave the "Invite Code" blank when creating the account. Thank you.
    0

Please sign in to leave a comment.