50-server.cnf 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. #
  2. # These groups are read by MariaDB server.
  3. # Use it for options that only the server (but not clients) should see
  4. #
  5. # See the examples of server my.cnf files in /usr/share/mysql
  6. # this is read by the standalone daemon and embedded servers
  7. [server]
  8. # this is only for the mysqld standalone daemon
  9. [mysqld]
  10. #
  11. # * Basic Settings
  12. #
  13. user = mysql
  14. pid-file = /run/mysqld/mysqld.pid
  15. socket = /run/mysqld/mysqld.sock
  16. #port = 3306
  17. basedir = /usr
  18. datadir = /var/lib/mysql
  19. tmpdir = /tmp
  20. lc-messages-dir = /usr/share/mysql
  21. #skip-external-locking
  22. # Instead of skip-networking the default is now to listen only on
  23. # localhost which is more compatible and is not less secure.
  24. #bind-address = 127.0.0.1
  25. bind-address = 0.0.0.0
  26. #
  27. # * Fine Tuning
  28. #
  29. #key_buffer_size = 16M
  30. #max_allowed_packet = 16M
  31. #thread_stack = 192K
  32. #thread_cache_size = 8
  33. # This replaces the startup script and checks MyISAM tables if needed
  34. # the first time they are touched
  35. #myisam_recover_options = BACKUP
  36. #max_connections = 100
  37. #table_cache = 64
  38. #thread_concurrency = 10
  39. #
  40. # * Query Cache Configuration
  41. #
  42. #query_cache_limit = 1M
  43. query_cache_size = 16M
  44. #
  45. # * Logging and Replication
  46. #
  47. # Both location gets rotated by the cronjob.
  48. # Be aware that this log type is a performance killer.
  49. # As of 5.1 you can enable the log at runtime!
  50. #general_log_file = /var/log/mysql/mysql.log
  51. #general_log = 1
  52. #
  53. # Error log - should be very few entries.
  54. #
  55. log_error = /var/log/mysql/error.log
  56. #
  57. # Enable the slow query log to see queries with especially long duration
  58. #slow_query_log_file = /var/log/mysql/mariadb-slow.log
  59. #long_query_time = 10
  60. #log_slow_rate_limit = 1000
  61. #log_slow_verbosity = query_plan
  62. #log-queries-not-using-indexes
  63. #
  64. # The following can be used as easy to replay backup logs or for replication.
  65. # note: if you are setting up a replication slave, see README.Debian about
  66. # other settings you may need to change.
  67. #server-id = 1
  68. #log_bin = /var/log/mysql/mysql-bin.log
  69. expire_logs_days = 10
  70. #max_binlog_size = 100M
  71. #binlog_do_db = include_database_name
  72. #binlog_ignore_db = exclude_database_name
  73. #
  74. # * Security Features
  75. #
  76. # Read the manual, too, if you want chroot!
  77. #chroot = /var/lib/mysql/
  78. #
  79. # For generating SSL certificates you can use for example the GUI tool "tinyca".
  80. #
  81. #ssl-ca = /etc/mysql/cacert.pem
  82. #ssl-cert = /etc/mysql/server-cert.pem
  83. #ssl-key = /etc/mysql/server-key.pem
  84. #
  85. # Accept only connections using the latest and most secure TLS protocol version.
  86. # ..when MariaDB is compiled with OpenSSL:
  87. #ssl-cipher = TLSv1.2
  88. # ..when MariaDB is compiled with YaSSL (default in Debian):
  89. #ssl = on
  90. #
  91. # * Character sets
  92. #
  93. # MySQL/MariaDB default is Latin1, but in Debian we rather default to the full
  94. # utf8 4-byte character set. See also client.cnf
  95. #
  96. character-set-server = utf8mb4
  97. collation-server = utf8mb4_general_ci
  98. #
  99. # * InnoDB
  100. #
  101. # InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
  102. # Read the manual for more InnoDB related options. There are many!
  103. #
  104. # * Unix socket authentication plugin is built-in since 10.0.22-6
  105. #
  106. # Needed so the root database user can authenticate without a password but
  107. # only when running as the unix root user.
  108. #
  109. # Also available for other users if required.
  110. # See https://mariadb.com/kb/en/unix_socket-authentication-plugin/
  111. # this is only for embedded server
  112. [embedded]
  113. # This group is only read by MariaDB servers, not by MySQL.
  114. # If you use the same .cnf file for MySQL and MariaDB,
  115. # you can put MariaDB-only options here
  116. [mariadb]
  117. # This group is only read by MariaDB-10.3 servers.
  118. # If you use the same .cnf file for MariaDB of different versions,
  119. # use this group for options that older servers don't understand
  120. [mariadb-10.3]