Skip to main content

How to determine the log_error for MariaDB in cPanel?

Comments

4 comments

  • cPRex Jurassic Moderator

    Hey hey!  I can't say I've seen daily logs like that before for the MySQL service.  What do you see for the "log-error" value inside /etc/my.cnf?  The default looks like this:

    log-error=/var/log/mysqld.log
    0
  • JAB Creations

    Hi Rex, I figured it out:

    <?php
    $row1 = mysqli_fetch_assoc($result1);
    $file = $row1['Value'];
    $dir = explode_right('/', $file,2)[0];
    $file = explode_right('/', $file,2)[1];
    chdir($dir.'/');
    $files_command = 'find . -type f -name "*'.$file.'*" | sort -k1';
    $files = shell_exec($files_command);
    ?>

    0
  • cPRex Jurassic Moderator

    Where was that located?

    0
  • JAB Creations

    I presume you mean the MariaDB error log file at /var/log/mysqld.log. I had to change the directory in PHP using chdir().

    On the other thread I'm simply waiting for tomorrow to see if the change I made will resolve the 640 to 644 issue.

    0

Please sign in to leave a comment.