{"id":543,"date":"2012-09-24T12:40:18","date_gmt":"2012-09-24T12:40:18","guid":{"rendered":"http:\/\/10sa.com\/sql_stories\/?p=543"},"modified":"2012-09-24T12:40:18","modified_gmt":"2012-09-24T12:40:18","slug":"syslog-mysql","status":"publish","type":"post","link":"http:\/\/10sa.com\/sql_stories\/?p=543","title":{"rendered":"Syslog &#038; Mysql"},"content":{"rendered":"<p>Add to the configuration file in the section mysqld_safe<\/p>\n<pre lang=\"bash\">\r\n[mysqld_safe]\r\nsyslog\r\n<\/pre>\n<p>Restart your rdbms and check whether your mysqld logs to your syslog file. In the contrary remove in the starting script redirecting output and background at the executing mysqld_safe<\/p>\n<pre lang=\"bash\">\r\n$bindir\/mysqld_safe --datadir=\"$datadir\" --pid-file=\"$mysqld_pid_file_path\"  $other_args # >\/dev\/null 2>&1 &\r\n<\/pre>\n<p>Do you see the following message? &#8220;Can&#8217;t log to error log and syslog at the same time. Remove all &#8211;log-error configuration options for &#8211;syslog to take effect.&#8221;<br \/>\nThen, check if your mysql server has some additional info about the error log with my_print_defaults <\/p>\n<pre>\r\n.\/my_print_defaults mysqld_safe safe_mysqld\r\n<\/pre>\n<p>When you see some value for error-log &#8211; it means there is some additional config file. Even I made the installation from the source there was an additional file in the localization \/etc\/my.cnf.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Add to the configuration file in the section mysqld_safe [mysqld_safe] syslog Restart your rdbms and check whether your mysqld logs to your syslog file. In the contrary remove in the starting script redirecting output and background at the executing mysqld_safe $bindir\/mysqld_safe &#8211;datadir=&#8221;$datadir&#8221; &#8211;pid-file=&#8221;$mysqld_pid_file_path&#8221; $other_args # >\/dev\/null 2>&#038;1 &#038; Do you see the following message? &#8220;Can&#8217;t [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=\/wp\/v2\/posts\/543"}],"collection":[{"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=543"}],"version-history":[{"count":7,"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=\/wp\/v2\/posts\/543\/revisions"}],"predecessor-version":[{"id":550,"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=\/wp\/v2\/posts\/543\/revisions\/550"}],"wp:attachment":[{"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=543"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}