50-server.cnf 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. #
  2. # These groups are read by MariaDB server.
  3. # Use it for options that only the server (but not clients) should see
  4. # this is read by the standalone daemon and embedded servers
  5. [server]
  6. # this is only for the mysqld standalone daemon
  7. [mysqld]
  8. max_connections=300
  9. sql_mode=NO_ENGINE_SUBSTITUTION
  10. #
  11. # * Basic Settings
  12. #
  13. user = mysql
  14. pid-file = /run/mysqld/mysqld.pid
  15. basedir = /usr
  16. datadir = /var/lib/mysql
  17. tmpdir = /tmp
  18. lc-messages-dir = /usr/share/mysql
  19. lc-messages = en_US
  20. skip-external-locking
  21. # Broken reverse DNS slows down connections considerably and name resolve is
  22. # safe to skip if there are no "host by domain name" access grants
  23. #skip-name-resolve
  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_size = 128M
  31. #max_allowed_packet = 1G
  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_options = BACKUP
  37. #max_connections = 100
  38. #table_cache = 64
  39. #
  40. # * Logging and Replication
  41. #
  42. # Both location gets rotated by the cronjob.
  43. # Be aware that this log type is a performance killer.
  44. # Recommend only changing this at runtime for short testing periods if needed!
  45. #general_log_file = /var/log/mysql/mysql.log
  46. #general_log = 1
  47. # When running under systemd, error logging goes via stdout/stderr to journald
  48. # and when running legacy init error logging goes to syslog due to
  49. # /etc/mysql/conf.d/mariadb.conf.d/50-mysqld_safe.cnf
  50. # Enable this if you want to have error logging into a separate file
  51. #log_error = /var/log/mysql/error.log
  52. # Enable the slow query log to see queries with especially long duration
  53. #slow_query_log_file = /var/log/mysql/mariadb-slow.log
  54. #long_query_time = 10
  55. #log_slow_verbosity = query_plan,explain
  56. #log-queries-not-using-indexes
  57. #min_examined_row_limit = 1000
  58. # The following can be used as easy to replay backup logs or for replication.
  59. # note: if you are setting up a replication slave, see README.Debian about
  60. # other settings you may need to change.
  61. #server-id = 1
  62. #log_bin = /var/log/mysql/mysql-bin.log
  63. expire_logs_days = 10
  64. #max_binlog_size = 100M
  65. #
  66. # * SSL/TLS
  67. #
  68. # For documentation, please read
  69. # https://mariadb.com/kb/en/securing-connections-for-client-and-server/
  70. #ssl-ca = /etc/mysql/cacert.pem
  71. #ssl-cert = /etc/mysql/server-cert.pem
  72. #ssl-key = /etc/mysql/server-key.pem
  73. #require-secure-transport = on
  74. #
  75. # * Character sets
  76. #
  77. # MySQL/MariaDB default is Latin1, but in Debian we rather default to the full
  78. # utf8 4-byte character set. See also client.cnf
  79. character-set-server = utf8mb4
  80. collation-server = utf8mb4_general_ci
  81. #
  82. # * InnoDB
  83. #
  84. # InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
  85. # Read the manual for more InnoDB related options. There are many!
  86. # Most important is to give InnoDB 80 % of the system RAM for buffer use:
  87. # https://mariadb.com/kb/en/innodb-system-variables/#innodb_buffer_pool_size
  88. #innodb_buffer_pool_size = 8G
  89. # this is only for embedded server
  90. [embedded]
  91. # This group is only read by MariaDB servers, not by MySQL.
  92. # If you use the same .cnf file for MySQL and MariaDB,
  93. # you can put MariaDB-only options here
  94. [mariadb]
  95. # This group is only read by MariaDB-10.6 servers.
  96. # If you use the same .cnf file for MariaDB of different versions,
  97. # use this group for options that older servers don't understand
  98. [mariadb-10.6]