384ec08bed
This is a patch to build the mysql server. So far I only have the kirkwood target to test on, but it works great on that. There seems to be some contention on whether Openwrt should have a mysql-server package, but I don't see why it shouldn't at least have the option. A full LAMP stack is now a reality. Closes out https://dev.openwrt.org/ticket/7384 Again, I'm still pretty new to this, so any constructive criticism would be appreciated. Sorry for the attachment, but I wanted to make sure the whitespace and lines got preserved. Signed-off-by: Kyle Anderson <kyle@xkyle.com> SVN-Revision: 22911
55 lines
1.1 KiB
INI
55 lines
1.1 KiB
INI
[client]
|
|
port = 3306
|
|
socket = /var/run/mysqld.sock
|
|
|
|
[mysqld]
|
|
user = root
|
|
socket = /var/run/mysqld.sock
|
|
port = 3306
|
|
basedir = /usr
|
|
|
|
############ Don't put this on the NAND #############
|
|
# Figure out where you are going to put the databases
|
|
# And run mysql_install_db --force
|
|
datadir = /mnt/data/mysql/
|
|
|
|
######### This should also not go on the NAND #######
|
|
tmpdir = /mnt/data/tmp/
|
|
|
|
skip-external-locking
|
|
|
|
bind-address = 127.0.0.1
|
|
|
|
# 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 = 2
|
|
#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
|
|
|
|
[isamchk]
|
|
key_buffer = 16M
|
|
|
|
|