Advertisement
Guest User

Untitled

a guest
Mar 17th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. # cat /etc/logrotate.d/mysqld
  2.  
  3. # This logname can be set in /etc/my.cnf
  4. # by setting the variable "err-log"
  5. # in the [safe_mysqld] section as follows:
  6. #
  7. # [safe_mysqld]
  8. # err-log=/var/log/mysqld.log
  9. #
  10. # If the root user has a password you have to create a
  11. # /root/.my.cnf configuration file with the following
  12. # content:
  13. #
  14. # [mysqladmin]
  15. # password = <secret>
  16. # user= root
  17. #
  18. # where "<secret>" is the password.
  19. #
  20. # ATTENTION: This /root/.my.cnf should be readable ONLY
  21. # for Root !
  22.  
  23. # Then, un-comment the following lines to enable rotation of mysql's log file:
  24.  
  25. # /var/log/mysqld.log {
  26. # create 640 mysql mysql
  27. # notifempty
  28. # daily
  29. # rotate 3
  30. # missingok
  31. # compress
  32. # postrotate
  33. # # just if mysqld is really running
  34. # if test -x /usr/bin/mysqladmin && \
  35. # /usr/bin/mysqladmin ping &>/dev/null
  36. # then
  37. # /usr/bin/mysqladmin flush-logs
  38. # fi
  39. # endscript
  40. # }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement