Guest User

Untitled

a guest
Jan 21st, 2014
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.89 KB | None | 0 0
  1. [mysqld]
  2. #
  3. # * Basic Settings
  4. #
  5. user = mysql
  6. pid-file = /var/run/mysqld/mysqld.pid
  7. socket = /var/run/mysqld/mysqld.sock
  8. port = 3306
  9. basedir = /usr
  10. datadir = /mysql/mysql
  11. tmpdir = /tmp
  12. lc-messages-dir = /usr/share/mysql
  13. skip-external-locking
  14. #
  15. # Instead of skip-networking the default is now to listen only on
  16. # localhost which is more compatible and is not less secure.
  17. bind-address = 127.0.0.1
  18. #
  19. # * Fine Tuning
  20. #16M default -------------------------------
  21. key_buffer = 512M
  22. max_allowed_packet = 16M
  23. #256k default -----------
  24. thread_stack = 1M
  25. thread_cache_size = 8
  26. # This replaces the startup script and checks MyISAM tables if needed
  27. # the first time they are touched
  28. myisam-recover = BACKUP
  29. #max_connections = 100
  30. table_cache = 2048
  31. #thread_concurrency = 10
  32. #
  33. # * Query Cache Configuration
  34. #1M default----------------------
  35. query_cache_limit = 16M
  36. #128M default--------------------
  37. query_cache_size = 512M
  38. #
  39.  
  40.  
  41. #1M default ---------------------
  42. join_buffer_size = 2M
  43. # * Logging and Replication
  44. #
  45. # Both location gets rotated by the cronjob.
  46. # Be aware that this log type is a performance killer.
  47. # As of 5.1 you can enable the log at runtime!
  48. general_log_file = /var/log/mysql/mysql.log
  49. general_log = 1
  50. #
  51. # Error logging goes to syslog due to /etc/mysql/conf.d/mysqld_safe_syslog.cnf.
  52. #
  53. # Here you can see queries with especially long duration
  54. log_slow_queries = /var/log/mysql/mysql-slow.log
  55. long_query_time = 2
  56. log-queries-not-using-indexes
  57. #
  58. # The following can be used as easy to replay backup logs or for replication.
  59. # note: if you are setting up a replication slave, see README.Debian about
  60. # other settings you may need to change.
  61. #server-id = 1
  62. #log_bin = /var/log/mysql/mysql-bin.log
  63. expire_logs_days = 10
  64. max_binlog_size = 100M
  65. #binlog_do_db = include_database_name
  66. #binlog_ignore_db = include_database_name
  67. #
  68. # * InnoDB
  69. #
  70. # InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
  71. # Read the manual for more InnoDB related options. There are many!
  72. #
  73. # * Security FeatureOC
  74. #
  75. # Read the manual, too, if you want chroot!
  76. # chroot = /var/lib/mysql/
  77. #
  78. # For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
  79. #
  80. # ssl-ca=/etc/mysql/cacert.pem
  81. # ssl-cert=/etc/mysql/server-cert.pem
  82. # ssl-key=/etc/mysql/server-key.pem
  83.  
  84.  
  85. [mysqldump]
  86. quick
  87. quote-names
  88. max_allowed_packet = 16M
  89.  
  90. [mysql]
  91. #no-auto-rehash # faster start of mysql but no tab completition
  92.  
  93. [isamchk]
  94. key_buffer = 16M
  95.  
  96.  
  97. #
  98. # * IMPORTANT: Additional settings that can override those from this file!
  99. # The files must end with '.cnf', otherwise they'll be ignored.
  100. #
  101. !includedir /etc/mysql/conf.d/
Advertisement
Add Comment
Please, Sign In to add comment