Advertisement
QualibreInfo

50-server.cnf

Feb 4th, 2022
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.69 KB | None | 0 0
  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. # this is read by the standalone daemon and embedded servers
  6. [server]
  7.  
  8. # this is only for the mysqld standalone daemon
  9. [mysqld]
  10.  
  11. #
  12. # * Basic Settings
  13. #
  14.  
  15. user = mysql
  16. pid-file = /run/mysqld/mysqld.pid
  17. basedir = /usr
  18. datadir = /var/lib/mysql
  19. tmpdir = /tmp
  20. lc-messages-dir = /usr/share/mysql
  21. lc-messages = en_US
  22. skip-external-locking
  23.  
  24. # Broken reverse DNS slows down connections considerably and name resolve is
  25. # safe to skip if there are no "host by domain name" access grants
  26. #skip-name-resolve
  27.  
  28. # Instead of skip-networking the default is now to listen only on
  29. # localhost which is more compatible and is not less secure.
  30. bind-address = 0.0.0.0
  31.  
  32. #
  33. # * Fine Tuning
  34. #
  35.  
  36. #key_buffer_size = 128M
  37. #max_allowed_packet = 1G
  38. #thread_stack = 192K
  39. #thread_cache_size = 8
  40. # This replaces the startup script and checks MyISAM tables if needed
  41. # the first time they are touched
  42. #myisam_recover_options = BACKUP
  43. #max_connections = 100
  44. #table_cache = 64
  45.  
  46. #
  47. # * Logging and Replication
  48. #
  49.  
  50. # Both location gets rotated by the cronjob.
  51. # Be aware that this log type is a performance killer.
  52. # Recommend only changing this at runtime for short testing periods if needed!
  53. #general_log_file = /var/log/mysql/mysql.log
  54. #general_log = 1
  55.  
  56. # When running under systemd, error logging goes via stdout/stderr to journald
  57. # and when running legacy init error logging goes to syslog due to
  58. # /etc/mysql/conf.d/mariadb.conf.d/50-mysqld_safe.cnf
  59. # Enable this if you want to have error logging into a separate file
  60. #log_error = /var/log/mysql/error.log
  61. # Enable the slow query log to see queries with especially long duration
  62. #slow_query_log_file = /var/log/mysql/mariadb-slow.log
  63. #long_query_time = 10
  64. #log_slow_verbosity = query_plan,explain
  65. #log-queries-not-using-indexes
  66. #min_examined_row_limit = 1000
  67.  
  68. # The following can be used as easy to replay backup logs or for replication.
  69. # note: if you are setting up a replication slave, see README.Debian about
  70. # other settings you may need to change.
  71. #server-id = 1
  72. #log_bin = /var/log/mysql/mysql-bin.log
  73. expire_logs_days = 10
  74. #max_binlog_size = 100M
  75.  
  76. #
  77. # * SSL/TLS
  78. #
  79.  
  80. # For documentation, please read
  81. # https://mariadb.com/kb/en/securing-connections-for-client-and-server/
  82. #ssl-ca = /etc/mysql/cacert.pem
  83. #ssl-cert = /etc/mysql/server-cert.pem
  84. #ssl-key = /etc/mysql/server-key.pem
  85. #require-secure-transport = on
  86.  
  87. #
  88. # * Character sets
  89. #
  90.  
  91. # MySQL/MariaDB default is Latin1, but in Debian we rather default to the full
  92. # utf8 4-byte character set. See also client.cnf
  93. character-set-server = utf8mb4
  94. collation-server = utf8mb4_general_ci
  95.  
  96. #
  97. # * InnoDB
  98. #
  99.  
  100. # InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
  101. # Read the manual for more InnoDB related options. There are many!
  102. # Most important is to give InnoDB 80 % of the system RAM for buffer use:
  103. # https://mariadb.com/kb/en/innodb-system-variables/#innodb_buffer_pool_size
  104. #innodb_buffer_pool_size = 8G
  105.  
  106. # this is only for embedded server
  107. [embedded]
  108.  
  109. # This group is only read by MariaDB servers, not by MySQL.
  110. # If you use the same .cnf file for MySQL and MariaDB,
  111. # you can put MariaDB-only options here
  112. [mariadb]
  113.  
  114. # This group is only read by MariaDB-10.5 servers.
  115. # If you use the same .cnf file for MariaDB of different versions,
  116. # use this group for options that older servers don't understand
  117. [mariadb-10.5]
  118.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement