Created
August 14, 2014 08:34
-
-
Save lanceliao/d969827bc3361556c18f to your computer and use it in GitHub Desktop.
MySQL config on OpenWrt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[client] | |
port = 3306 | |
socket = /var/run/mysqld.sock | |
default-character-set=utf8 | |
[mysqld] | |
user = root | |
socket = /var/run/mysqld.sock | |
port = 3306 | |
basedir = /usr | |
lower_case_table_names=1 | |
character-set-server=utf8 | |
############ Don't put this on the NAND ############# | |
# Figure out where you are going to put the databases | |
# And run mysql_install_db --force | |
datadir = /home/db/mysql/ | |
######### This should also not go on the NAND ####### | |
tmpdir = /home/db/tmp/ | |
skip-external-locking | |
bind-address = 0.0.0.0 | |
# Fine Tuning | |
key_buffer = 16M | |
max_allowed_packet = 16M | |
thread_stack = 192K | |
thread_cache_size = 8 | |
# Here you can see queries with especially long duration | |
log_slow_queries = /var/log/mysql/mysql-slow.log | |
long_query_time = 1 | |
#log-queries-not-using-indexes | |
# The following can be used as easy to replay backup logs or for replication. | |
#server-id = 1 | |
#log_bin = /var/log/mysql/mysql-bin.log | |
#expire_logs_days = 10 | |
#max_binlog_size = 100M | |
#binlog_do_db = include_database_name | |
#binlog_ignore_db = include_database_name | |
[mysqldump] | |
quick | |
quote-names | |
max_allowed_packet = 16M | |
[mysql] | |
#no-auto-rehash # faster start of mysql but no tab completition | |
default-character-set=utf8 | |
[isamchk] | |
key_buffer = 16M | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment