sysm.cnf 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. # Example MySQL config file for small systems.
  2. #
  3. # This is for a system with little memory (<= 64M) where MySQL is only used
  4. # from time to time and it's important that the mysqld daemon
  5. # doesn't use much resources.
  6. #
  7. # MySQL programs look for option files in a set of
  8. # locations which depend on the deployment platform.
  9. # You can copy this option file to one of those
  10. # locations. For information about these locations, see:
  11. # http://dev.mysql.com/doc/mysql/en/option-files.html
  12. #
  13. # In this file, you can use all long options that a program supports.
  14. # If you want to know which options a program supports, run the program
  15. # with the "--help" option.
  16. # The following options will be passed to all MySQL clients
  17. [client]
  18. default-character-set=utf8
  19. #password = your_password
  20. port = 3306
  21. # Here follows entries for some specific programs
  22. # The MySQL server
  23. [mysqld]
  24. default-storage-engine=INNODB
  25. character-set-server=utf8
  26. collation-server=utf8_general_ci
  27. port = 3306
  28. skip-external-locking
  29. key_buffer_size = 16K
  30. max_allowed_packet = 1M
  31. table_open_cache = 4
  32. sort_buffer_size = 64K
  33. read_buffer_size = 256K
  34. read_rnd_buffer_size = 256K
  35. net_buffer_length = 2K
  36. thread_stack = 128K
  37. # Don't listen on a TCP/IP port at all. This can be a security enhancement,
  38. # if all processes that need to connect to mysqld run on the same host.
  39. # All interaction with mysqld must be made via Unix sockets or named pipes.
  40. # Note that using this option without enabling named pipes on Windows
  41. # (using the "enable-named-pipe" option) will render mysqld useless!
  42. #
  43. #skip-networking
  44. #server-id = 1
  45. bind-address=0.0.0.0
  46. # Uncomment the following if you want to log updates
  47. #log-bin=mysql-bin
  48. # binary logging format - mixed recommended
  49. #binlog_format=mixed
  50. # Causes updates to non-transactional engines using statement format to be
  51. # written directly to binary log. Before using this option make sure that
  52. # there are no dependencies between transactional and non-transactional
  53. # tables such as in the statement INSERT INTO t_myisam SELECT * FROM
  54. # t_innodb; otherwise, slaves may diverge from the master.
  55. #binlog_direct_non_transactional_updates=TRUE
  56. # Uncomment the following if you are using InnoDB tables
  57. #innodb_data_home_dir = /usr/local/mysql/data
  58. #innodb_data_file_path = ibdata1:10M:autoextend
  59. #innodb_log_group_home_dir = /usr/local/mysql/data
  60. # You can set .._buffer_pool_size up to 50 - 80 %
  61. # of RAM but beware of setting memory usage too high
  62. #innodb_buffer_pool_size = 16M
  63. #innodb_additional_mem_pool_size = 2M
  64. # Set .._log_file_size to 25 % of buffer pool size
  65. #innodb_log_file_size = 5M
  66. #innodb_log_buffer_size = 8M
  67. #innodb_flush_log_at_trx_commit = 1
  68. #innodb_lock_wait_timeout = 50
  69. [mysqldump]
  70. quick
  71. max_allowed_packet = 16M
  72. [mysql]
  73. no-auto-rehash
  74. # Remove the next comment character if you are not familiar with SQL
  75. #safe-updates
  76. [myisamchk]
  77. key_buffer_size = 8M
  78. sort_buffer_size = 8M
  79. [mysqlhotcopy]
  80. interactive-timeout