Advertisement
Guest User

Untitled

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