{"action":"created","issue":{"url":"https://api.github.com/repos/twn39/code/issues/74","labels_url":"https://api.github.com/repos/twn39/code/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/twn39/code/issues/74/comments","events_url":"https://api.github.com/repos/twn39/code/issues/74/events","html_url":"https://github.com/twn39/code/issues/74","id":120553662,"number":74,"title":"MariaDB 配置优化","user":{"login":"twn39","id":1572872,"avatar_url":"https://avatars.githubusercontent.com/u/1572872?v=3","gravatar_id":"","url":"https://api.github.com/users/twn39","html_url":"https://github.com/twn39","followers_url":"https://api.github.com/users/twn39/followers","following_url":"https://api.github.com/users/twn39/following{/other_user}","gists_url":"https://api.github.com/users/twn39/gists{/gist_id}","starred_url":"https://api.github.com/users/twn39/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twn39/subscriptions","organizations_url":"https://api.github.com/users/twn39/orgs","repos_url":"https://api.github.com/users/twn39/repos","events_url":"https://api.github.com/users/twn39/events{/privacy}","received_events_url":"https://api.github.com/users/twn39/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/twn39/code/labels/database","name":"database","color":"5319e7"},{"url":"https://api.github.com/repos/twn39/code/labels/mysql","name":"mysql","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-05T13:15:52Z","updated_at":"2015-12-05T13:53:46Z","closed_at":null,"body":"MariaDB 配置优化"},"comment":{"url":"https://api.github.com/repos/twn39/code/issues/comments/162188965","html_url":"https://github.com/twn39/code/issues/74#issuecomment-162188965","issue_url":"https://api.github.com/repos/twn39/code/issues/74","id":162188965,"user":{"login":"twn39","id":1572872,"avatar_url":"https://avatars.githubusercontent.com/u/1572872?v=3","gravatar_id":"","url":"https://api.github.com/users/twn39","html_url":"https://github.com/twn39","followers_url":"https://api.github.com/users/twn39/followers","following_url":"https://api.github.com/users/twn39/following{/other_user}","gists_url":"https://api.github.com/users/twn39/gists{/gist_id}","starred_url":"https://api.github.com/users/twn39/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twn39/subscriptions","organizations_url":"https://api.github.com/users/twn39/orgs","repos_url":"https://api.github.com/users/twn39/repos","events_url":"https://api.github.com/users/twn39/events{/privacy}","received_events_url":"https://api.github.com/users/twn39/received_events","type":"User","site_admin":false},"created_at":"2015-12-05T13:53:46Z","updated_at":"2015-12-05T13:53:46Z","body":"#### 设置慢查询日志\r\n\r\n配置文件：`/etc/mysql/conf.d/mariadb.cnf`\r\n\r\n```\r\nslow_query_log = 1\r\nslow_query_log_file = /var/log/mysql/mariadb_slow_query.log\r\nlong_query_time = 1\r\n```"}}