Warning, /graphics/digikam/core/data/database/mysql-global.conf is written in an unsupported language. File is not indexed.
0001 # ============================================================ 0002 # 0003 # This file is a part of digiKam project 0004 # https://www.digikam.org 0005 # 0006 # Date : 2009-07-28 0007 # Description : Global digiKam MySQL Internal server default settings. 0008 # These settings can be adjusted if necessary in mysql.conf 0009 # file installed at database install path. 0010 # Based on advice by Kris Köhntopp <kris at mysql dot com> 0011 # for Akonadi project. 0012 # 0013 # SPDX-FileCopyrightText: 2009 by Holger Foerster <hamsi2k at freenet dot de> 0014 # SPDX-FileCopyrightText: 2007-2013 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de> 0015 # SPDX-FileCopyrightText: 2010-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0016 # 0017 # SPDX-License-Identifier: GPL-2.0-or-later 0018 # 0019 # ============================================================ 0020 0021 [mysqld] 0022 0023 0024 ### SKIP FEATURES SETTINGS #################################### 0025 0026 # Be able to be connected to database without a password 0027 skip_grant_tables 0028 0029 # No remote access to database 0030 skip_networking 0031 0032 # strict query parsing/interpretation 0033 # TODO: make digiKam work with those settings enabled 0034 #sql_mode=strict_trans_tables,strict_all_tables,strict_error_for_division_by_zero,no_auto_create_user,no_auto_value_on_zero,no_engine_substitution,no_zero_date,no_zero_in_date,only_full_group_by,pipes_as_concat 0035 #sql_mode=strict_trans_tables 0036 0037 0038 ### CHAR ENCODING SETTINGS #################################### 0039 0040 # case-insensitive table names, avoids trouble on windows 0041 #lower_case_table_names=1 0042 0043 character_set_server=utf8 0044 collation_server=utf8_general_ci 0045 0046 0047 ### LOG FILES SETTINGS ######################################## 0048 0049 # Log rules 0050 log_bin=mysql-bin 0051 log-bin-trust-function-creators=1 0052 expire_logs_days=3 0053 #sync_bin_log=0 0054 0055 # log file name to store errors, relative to datadir 0056 log_error=mysql.err 0057 log_warnings=2 0058 0059 # log all queries, useful for debugging but generates an enormous amount of data 0060 #general_log=0 0061 #general_log_file=mysql.full 0062 0063 # log queries slower than n seconds, log file name relative to datadir 0064 slow_query_log_file=mysql.slow 0065 long_query_time=1 0066 0067 # log queries not using indices, debug only, disable for production use 0068 log_queries_not_using_indexes=1 0069 0070 0071 ### CACHE SETTINGS ########################################### 0072 0073 # makes sense when having the same query multiple times 0074 # makes no sense with prepared statements and/or transactions 0075 query_cache_type=0 0076 query_cache_size=0 0077 0078 table_open_cache=200 0079 thread_cache_size=3 0080 0081 0082 ### INNO DATABASE ENGINE SETTINGS ############################# 0083 0084 innodb_file_per_table=1 0085 innodb_log_buffer_size=1M 0086 innodb_buffer_pool_size=80M 0087 0088 # size of average write burst, keep Innob_log_waits small, keep Innodb_buffer_pool_wait_free small (see show global status like "inno%", show global variables) 0089 innodb_log_file_size=64M 0090 innodb_flush_log_at_trx_commit=2 0091 0092 0093 ### MISC SETTINGS ############################################# 0094 0095 # maximum blob size 0096 max_allowed_packet=128M 0097 max_connections=256 0098 0099 0100 ### PASSWORD SETTINGS ######################################### 0101 0102 # disable SHA2 password 0103 default_authentication_plugin=mysql_native_password 0104 0105 # measure database size and adjust 0106 # SELECT sum(data_length) as bla, sum(index_length) as blub FROM information_schema.tables WHERE table_schema not in ("mysql", "information_schema");