+++ support-script/mariadb/.my.cnf
... | ... | @@ -0,0 +1,100 @@ |
1 | +# Example MySQL config file for small systems. | |
2 | +# | |
3 | +# This is for a system with little memory (<= 64M) where MySQL is only used | |
4 | +# from time to time and it's important that the mysqld daemon | |
5 | +# doesn't use much resources. | |
6 | +# | |
7 | +# MySQL programs look for option files in a set of | |
8 | +# locations which depend on the deployment platform. | |
9 | +# You can copy this option file to one of those | |
10 | +# locations. For information about these locations, see: | |
11 | +# http://dev.mysql.com/doc/mysql/en/option-files.html | |
12 | +# | |
13 | +# In this file, you can use all long options that a program supports. | |
14 | +# If you want to know which options a program supports, run the program | |
15 | +# with the "--help" option. | |
16 | + | |
17 | +# The following options will be passed to all MySQL clients | |
18 | +[client] | |
19 | +#password = your_password | |
20 | +port = 3306 | |
21 | +socket = /tmp/mysql.sock | |
22 | + | |
23 | +# Here follows entries for some specific programs | |
24 | + | |
25 | +# The MySQL server | |
26 | +[mysqld] | |
27 | +port = 3306 | |
28 | +socket = /tmp/mysql.sock | |
29 | +skip-external-locking | |
30 | +key_buffer_size = 16K | |
31 | +max_allowed_packet = 1M | |
32 | +table_open_cache = 4 | |
33 | +sort_buffer_size = 64K | |
34 | +read_buffer_size = 256K | |
35 | +read_rnd_buffer_size = 256K | |
36 | +net_buffer_length = 2K | |
37 | +thread_stack = 240K | |
38 | +innodb_large_prefix = ON | |
39 | +innodb_file_format = barracuda | |
40 | + | |
41 | +#General Query Log | |
42 | +general_log | |
43 | + | |
44 | +#Error Log | |
45 | + | |
46 | +#Slow Query Log | |
47 | +slow_query_log = 1 | |
48 | +log-queries-not-using-indexes | |
49 | + | |
50 | +# Don't listen on a TCP/IP port at all. This can be a security enhancement, | |
51 | +# if all processes that need to connect to mysqld run on the same host. | |
52 | +# All interaction with mysqld must be made via Unix sockets or named pipes. | |
53 | +# Note that using this option without enabling named pipes on Windows | |
54 | +# (using the "enable-named-pipe" option) will render mysqld useless! | |
55 | +# | |
56 | +#skip-networking | |
57 | +server-id = 1 | |
58 | + | |
59 | +# Uncomment the following if you want to log updates | |
60 | +#log-bin=mysql-bin | |
61 | + | |
62 | +# binary logging format - mixed recommended | |
63 | +#binlog_format=mixed | |
64 | + | |
65 | +# Causes updates to non-transactional engines using statement format to be | |
66 | +# written directly to binary log. Before using this option make sure that | |
67 | +# there are no dependencies between transactional and non-transactional | |
68 | +# tables such as in the statement INSERT INTO t_myisam SELECT * FROM | |
69 | +# t_innodb; otherwise, slaves may diverge from the master. | |
70 | +#binlog_direct_non_transactional_updates=TRUE | |
71 | + | |
72 | +# Uncomment the following if you are using InnoDB tables | |
73 | +#innodb_data_home_dir = /usr/local/var/mysql | |
74 | +#innodb_data_file_path = ibdata1:10M:autoextend | |
75 | +#innodb_log_group_home_dir = /var/log/mysql | |
76 | +# You can set .._buffer_pool_size up to 50 - 80 % | |
77 | +# of RAM but beware of setting memory usage too high | |
78 | +#innodb_buffer_pool_size = 16M | |
79 | +#innodb_additional_mem_pool_size = 2M | |
80 | +# Set .._log_file_size to 25 % of buffer pool size | |
81 | +#innodb_log_file_size = 5M | |
82 | +#innodb_log_buffer_size = 8M | |
83 | +#innodb_flush_log_at_trx_commit = 1 | |
84 | +#innodb_lock_wait_timeout = 50 | |
85 | + | |
86 | +[mysqldump] | |
87 | +quick | |
88 | +max_allowed_packet = 16M | |
89 | + | |
90 | +[mysql] | |
91 | +no-auto-rehash | |
92 | +# Remove the next comment character if you are not familiar with SQL | |
93 | +#safe-updates | |
94 | + | |
95 | +[myisamchk] | |
96 | +key_buffer_size = 8M | |
97 | +sort_buffer_size = 8M | |
98 | + | |
99 | +[mysqlhotcopy] | |
100 | +interactive-timeout |
+++ support-script/mariadb/my.cnf
... | ... | @@ -0,0 +1,15 @@ |
1 | +[client-server] | |
2 | + | |
3 | +[client] | |
4 | +default-character-set=utf8mb4 | |
5 | + | |
6 | +[mysql] | |
7 | +default-character-set=utf8mb4 | |
8 | + | |
9 | +[mysqld] | |
10 | +collation-server=utf8mb4_unicode_ci | |
11 | +init-connect='SET NAMES utf8mb4' | |
12 | +character-set-server=utf8mb4 | |
13 | +lower_case_table_names=1 | |
14 | +innodb_file_format=barracuda | |
15 | +innodb_large_prefix=on |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?