Advertisement
Guest User

Untitled

a guest
Jul 26th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1. # MariaDB database server configuration file.
  2. #
  3. # You can copy this file to one of:
  4. # - "/etc/mysql/my.cnf" to set global options,
  5. # - "~/.my.cnf" to set user-specific options.
  6. #
  7. # One can use all long options that the program supports.
  8. # Run program with --help to get a list of available options and with
  9. # --print-defaults to see which it would actually understand and use.
  10. #
  11. # For explanations see
  12. # http://dev.mysql.com/doc/mysql/en/server-system-variables.html
  13.  
  14. # This will be passed to all mysql clients
  15. # It has been reported that passwords should be enclosed with ticks/quotes
  16. # escpecially if they contain "#" chars...
  17. # Remember to edit /etc/mysql/debian.cnf when changing the socket location.
  18. [client]
  19. port = 3306
  20. socket = /var/run/mysqld/mysqld.sock
  21.  
  22. # Here is entries for some specific programs
  23. # The following values assume you have at least 32M ram
  24.  
  25. # This was formally known as [safe_mysqld]. Both versions are currently parsed.
  26. [mysqld_safe]
  27. socket = /var/run/mysqld/mysqld.sock
  28. nice = 0
  29.  
  30. [mysqld]
  31. #
  32. # * Basic Settings
  33. #
  34. user = mysql
  35. pid-file = /var/run/mysqld/mysqld.pid
  36. socket = /var/run/mysqld/mysqld.sock
  37. port = 3306
  38. basedir = /usr
  39. datadir = /var/lib/mysql
  40. tmpdir = /tmp
  41. lc_messages_dir = /usr/share/mysql
  42. lc_messages = en_US
  43. skip-external-locking
  44. #
  45. # Instead of skip-networking the default is now to listen only on
  46. # localhost which is more compatible and is not less secure.
  47. bind-address = 127.0.0.1
  48. #
  49. # * Fine Tuning
  50. #
  51. max_connections = 25
  52. connect_timeout = 5
  53. wait_timeout = 20
  54. max_allowed_packet = 16M
  55. thread_cache_size = 32
  56. sort_buffer_size = 4M
  57. bulk_insert_buffer_size = 16M
  58. tmp_table_size = 32M
  59. max_heap_table_size = 32M
  60. interactive_timeout = 300
  61. #
  62. # * MyISAM
  63. #
  64. # This replaces the startup script and checks MyISAM tables if needed
  65. # the first time they are touched. On error, make copy and try a repair.
  66. myisam_recover_options = BACKUP
  67. key_buffer_size = 128M
  68. #open-files-limit = 2000
  69. table_open_cache = 400
  70. myisam_sort_buffer_size = 512M
  71. concurrent_insert = 2
  72. read_buffer_size = 2M
  73. read_rnd_buffer_size = 1M
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement