Advertisement
rudraht

mycnf

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