dev-db/mysql: update my.cnf

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/mysql@1748 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one 2009-12-25 20:18:08 +00:00
parent 4379a4301b
commit 23ff3e161f
7 changed files with 214 additions and 8 deletions

View File

@ -2,6 +2,10 @@
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/ChangeLog,v 1.488 2009/07/06 19:08:59 robbat2 Exp $
25 Dec 2009; Mario Fetka <mario.fetka@gmail.com> +files/my.cnf-4.0,
files/my.cnf-4.1, mysql-5.1.41.ebuild, +files/my.cnf, +files/mysql.init:
update my.cnf
25 Dec 2009; Mario Fetka <mario.fetka@gmail.com> mysql-5.1.41.ebuild:
add new storage engine

View File

@ -1,12 +1,15 @@
AUX my.cnf-4.1 4121 RMD160 b90a15765b2baf10b5744b93840e1247bcde72ae SHA1 51f19b7aa01346d5d9e5070d904fc812b1e31c69 SHA256 8dc740d01911f7bb7b36e0e947973ac9f83cb2f0c25884cd4946da81440f752b
AUX my.cnf 1249 RMD160 680752c5c5f1e18e02f5c3286aaade406f271b95 SHA1 f5592c43e52d23902a23d4f824d4dddccd7cdd0c SHA256 29c07ce113496ec62bf9427609f2291861e3e165200d6e98a69bd312c6c101ec
AUX my.cnf-4.0 4316 RMD160 e2a9f3f1a13b1aa13151dc5dbeba1dad888337e3 SHA1 40d6f252fd103548bc422e86659ef644fbce1ac6 SHA256 f4616a38d7c1b5cc2bf6b4e5b175ffcc12a52e38772dd86274a8991ef50015af
AUX my.cnf-4.1 4235 RMD160 ca04e2e667322e99c29be59064c7a6ecaa4e1e4c SHA1 babc79984b2e2d3def93ac0c13cd2fc5c690212a SHA256 908a4883116e4f323510c468fd22c5765f8a2adce0344859fc212b7209a3a6c7
AUX mysql.init 886 RMD160 26b8aa45af3f930db01f0db731865b9293626fb1 SHA1 d7d99a3f45fa807d1fb57ab04b35800a69cae430 SHA256 2d7faf6d88fd13e5c10368a20074fdb59554635f8b1fd17e088d82208e611c12
DIST mysql-5.1.41.tar.gz 23026814 RMD160 f99d17a2bb43fc45222c7015a3b65c6b4f686129 SHA1 04f7cf87419ca233c2508c2912d72548767b7e2c SHA256 5cb721db43a5f61710d8503813adef335cb1b738c7164e3d7d2a9681af8dbc16
DIST mysql-storage-filesystem-0.1.1-gentoo-r6.tar.gz 17099 RMD160 8beb418d0d193a0b12decbaee63844394eee082e SHA1 21a4080885bebbbc471dc999371e687e52be4276 SHA256 59fe23d36aace776b2a85daaf0a2c9e1a3ff9896877fe7e360b174201cd2d633
DIST mysql-storage-filesystem-0.1.1-gentoo-r7.tar.gz 17099 RMD160 fcc3fe5a9f6d0b4f1b0f2d36969634c7f2701ff7 SHA1 b8e846b18b6b43927d050e9f418a75ac5728e2ba SHA256 0ece3795d61d25f8a61fa62e8add858c05415c4c47acb225f221afea1d7736af
DIST mysql-storage-innodb-1.0.6-gentoo-r1.tar.gz 1391223 RMD160 78655bd8ae52cda0db8b9342a3a8104fb6d3d50d SHA1 768ed5968ccfe9e68c04ec0100ee6105692b8383 SHA256 b60ef8d16e1a8e645f8d6320dfded35819c73ff0eca71e5d090104e4748db80c
DIST mysql-storage-pbxt-1.0.09e-rc-gentoo-r3.tar.gz 2994470 RMD160 61973b8817f4187c65cd0feaa9994e6cbb691095 SHA1 0b08901fc48b9460ad07b1b41090128b9c460af3 SHA256 526290dba18b7a36df7f5bf3d654cc41e6144592963c1d94b39fec4c0a28d23f
DIST mysql-storage-revision-0.2-alpha-gentoo-r4.tar.gz 49477 RMD160 6bacc672ee3d09ba8ed189431b49983611f74c9a SHA1 17cef1702ff7691694a45aa59056677f26f9ba53 SHA256 a2f91fee28949400c4897966849777cfa6d4a1cef702054743e93543bb78329d
DIST mysql-storage-revision-0.2-alpha-gentoo-r5.tar.gz 49492 RMD160 3703f8a572b1a191d39c361b1783799c43b7c351 SHA1 9232b1ebecbd4d52a41e275e4c07a58862f0f37c SHA256 4bee9556c9e6737bd1d3578b20582f1c838982fc6491a5edcf140ee491f07e7a
DIST mysql-storage-soliddb-0081-gentoo-r2.tar.gz 2398914 RMD160 f46e3d7253990a4fb8341f6c99a7e275151ef96f SHA1 123ef79fc4fb4c759b064adc5ba9875a657c39ec SHA256 a79d0673379fae784a8e8edf7fe192b959b7061b04419959b7fbed8439307c03
DIST mysql-storage-sphinx-0.9.9-gentoo-r3.tar.gz 117988 RMD160 b18328ca54f919e3dc3b65abc8bdf54057f8b0a7 SHA1 9effa1de769e253b393eea5be0ec2a7d3007904d SHA256 ed7047ec91b0b00358cb6421110c09ce4ef3c9e8ffa1adc3b7406a80613ba848
DIST mysql-storage-spider-2.10-gentoo-r1.tar.gz 162512 RMD160 614e7dc1cab5a0b1b9856e9e596a5c7587a57d99 SHA1 d6893eb7314649c41a2e53d44201964c08044387 SHA256 842e219020c73862f71d280ce1c70c99cbeb9096b2a6944c8822237a5923ce0b
EBUILD mysql-5.1.41.ebuild 5087 RMD160 fe8b8576306bc6a1351fe446eeab81bb26b421de SHA1 903427bbd23b46474b939bb8555658ebb6f6a4a2 SHA256 8eef66140af8213395f17751f3d88a76ce5672be8696b1a1fc755a53794203d9
MISC ChangeLog 94728 RMD160 0ac9d5652e043c1ecfcee3d35f29ba7471ad34fe SHA1 926c80c694682dca730938b45110e93db078685e SHA256 93a2b24fb8960658e27bd34357e53bb1e0af079a0a73de0396f07e27de5048bf
EBUILD mysql-5.1.41.ebuild 5087 RMD160 b9bc34589bb5f5ee19fd5808721ce5160ba680f5 SHA1 3d79b7051ab92079e102429b09caa551cc507c12 SHA256 2abacfaf4efcb9eb1a3c6e86fe052a35af628f68300231bc7f5d3d1aff16ea9d
MISC ChangeLog 94890 RMD160 46b0b4cc51d6664bcfbd61baea0446c2afd7aebf SHA1 df661b603aa9ef93e010874971a5c777089e0027 SHA256 65bc3da05eeca4cccc3d0d05512ccb1199148066441fdd23da79662b0e2d2085
MISC metadata.xml 918 RMD160 ee023d3ae746d0d29ac387c1c87f3f8dec7c9568 SHA1 10ef755d319f93d02de705b3158f4e73aca28af4 SHA256 046a9880921c49fea8861a819c1afd27fc5a873dea28b80b040da2733e029c47

48
dev-db/mysql/files/my.cnf Normal file
View File

@ -0,0 +1,48 @@
# /etc/mysql/my.cnf: The global mysql configuration file.
# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/files/my.cnf,v 1.5 2008/11/14 01:49:37 robbat2 Exp $
#
# This file can be simultaneously placed in three places:
# 1. /etc/mysql/my.cnf to set global options.
# 2. /var/lib/mysql/my.cnf to set server-specific options.
# 3. ~/.my.cnf to set user-specific options.
#
# One can use all long options that the program supports.
# Run the program with --help to get a list of them.
#
# The following values assume you have at least 32M RAM!
[client]
#password = my_password
port = 3306
socket = /var/run/mysqld/mysqld.sock
[safe_mysqld]
err-log = /var/log/mysql/mysql.err
[mysqld]
#skip-networking
skip-innodb
innodb_file_per_table
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
log = /var/log/mysql/mysql.log
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
language = /usr/share/mysql/english
skip-locking
set-variable = key_buffer=16M
set-variable = max_allowed_packet=1M
set-variable = thread_stack=128K
[mysqldump]
quick
set-variable = max_allowed_packet=1M
[mysql]
#no-auto-rehash # faster start of mysql but no tab completition
[isamchk]
set-variable = key_buffer=16M

View File

@ -0,0 +1,113 @@
# /etc/mysql/my.cnf: The global mysql configuration file.
# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/files/my.cnf-4.0,v 1.2 2008/11/14 02:16:25 robbat2 Exp $
#
# This file can be simultaneously placed in three places:
# 1. /etc/mysql/my.cnf to set global options.
# 2. /var/lib/mysql/my.cnf to set server-specific options.
# 3. ~/.my.cnf to set user-specific options.
#
# One can use all long options that the program supports.
# Run the program with --help to get a list of them.
#
# The following values assume you have at least 64M RAM!
[client]
#password = my_password
port = 3306
socket = /var/run/mysqld/mysqld.sock
[safe_mysqld]
err-log = /var/log/mysql/mysql.err
[mysqld]
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
log-error = /var/log/mysql/mysqld.err
# If set, mysql logs all queries (general query log). This will be deprecated in
# MySQL 5.0. This logs all queries, even error queries and is slow.
# log = /var/log/mysql/mysql.log
#
# If you really need logging, you'd rather use binary logging. Especially when doing
# replication. Read file:/usr/share/doc/mysql-*/manual.html.gz#Replication for info.
# You can use PURGE MASTER LOGS TO '$hostname-bin.010' to get rid of old logs
# from $hostname-bin.01 up to $hostname-bin.09 while the slave server is
# running.
# Before doing that, check which logfile slave curently uses by running
# mysql> SHOW SLAVE STATUS
# To list logfiles on master do:
# mysql> SHOW MASTER LOGS
# Then use PURGE for those not needed anymore only! Never remove the files
# manually!
#
# Also consult RESET MASTER and RESET SLAVE commands before doing any changes
# mysql> RESET MASTER - Deletes all binary logs listed in the index
# file, resetting the binlog index file to be empty.
# mysql> RESET SLAVE - Makes the slave forget its replication position in
# the master logs.
# mysql> SET SQL_LOG_BIN=0 - this turns off logging (execute on MASTER only)
# mysql> SET SQL_LOG_BIN=1 - this turns on logging (execute on MASTER only)
#
# log-bin
# set-variable = binlog-do-db=non_existant
# set-variable = binlog-ignore-db=database_name
#
# server-id has to unique for each master or slave in your network,
# lets use the last number from IP address
# server-id = 207
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
language = /usr/share/mysql/english
skip-locking
set-variable = key_buffer=16M
set-variable = max_allowed_packet=1M
set-variable = thread_stack=128K
# be secure by default!
bind-address = 127.0.0.1
port = 3306
# this can make it even more secure:
#skip-networking
#
# the following is the InnoDB configuration
# if you wish to disable innodb instead
# uncomment just the next line
#skip-innodb
#
# the rest of the innodb config follows:
# don't eat too much memory, we're trying to be safe on 64Mb boxes
# you might want to bump this up a bit on boxes with more RAM
set-variable = innodb_buffer_pool_size=32M
# this is the default, increase it if you have lots of tables
set-variable = innodb_additional_mem_pool_size=1M
#
# i'd like to use /var/lib/mysql/innodb, but that is seen as a database :-(
# and upstream wants things to be under /var/lib/mysql/, so that's the route
# we have to take for the moment
innodb_data_home_dir = /var/lib/mysql/
innodb_log_arch_dir = /var/lib/mysql/
innodb_log_group_home_dir = /var/lib/mysql/
# you may wish to change this size to be more suitable for your system
# the max is there to avoid run-away growth on your machine
innodb_data_file_path = ibdata1:10M:autoextend:max:128M
# we keep this at around 25% of of innodb_buffer_pool_size
# sensible values range from 1MB to (1/innodb_log_files_in_group*innodb_buffer_pool_size)
set-variable = innodb_log_file_size=8M
# this is the default, increase it if you have very large transactions going on
set-variable = innodb_log_buffer_size=1M
# this is the default and won't hurt you
# you shouldn't need to tweak it
set-variable = innodb_log_files_in_group=2
# see the innodb config docs, the other options are not always safe
innodb_flush_log_at_trx_commit = 1
innodb_file_per_table
[mysqldump]
quick
set-variable = max_allowed_packet=16M
[mysql]
#no-auto-rehash # faster start of mysql but no tab completion
[isamchk]
set-variable = key_buffer=16M

View File

@ -1,5 +1,5 @@
# /etc/mysql/my.cnf: The global mysql configuration file.
# $Header: $
# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/files/my.cnf-4.1,v 1.4 2008/11/14 02:16:25 robbat2 Exp $
# The following options will be passed to all MySQL clients
[client]
@ -121,6 +121,7 @@ set-variable = innodb_log_files_in_group=2
# see the innodb config docs, the other options are not always safe
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 50
innodb_file_per_table
[mysqldump]
quick

View File

@ -0,0 +1,37 @@
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/files/mysql.init,v 1.7 2004/07/14 21:41:15 agriffis Exp $
depend() {
need net
use dns
}
checkconfig() {
if [ ! -f /etc/mysql/my.cnf ] ; then
eerror "No /etc/mysql/my.cnf file exists!"
fi
dir=`my_print_defaults mysqld | grep -- --datadir | sed -e "s|^.*=\(.*\)|\1|"`
if [ ! -d $dir/mysql ] ; then
eerror "You dont appear to have the mysql database installed yet."
eerror "Please run /usr/bin/mysql_install_db to have this done..."
return 1
fi
}
start() {
checkconfig || return 1
ebegin "Starting mysqld"
/usr/bin/safe_mysqld >/dev/null 2>&1 &
eend $?
}
stop () {
ebegin "Stopping mysqld"
start-stop-daemon --stop --quiet \
--pidfile=/var/run/mysqld/mysqld.pid --retry 20
eend $?
}

View File

@ -6,10 +6,10 @@ MY_EXTRAS_VER="live"
EAPI=2
MYSQL_STORAGE="pbxt-1.0.09e-rc-gentoo-r3
revision-0.2-alpha-gentoo-r4
revision-0.2-alpha-gentoo-r5
soliddb-0081-gentoo-r2
innodb-1.0.6-gentoo-r1
filesystem-0.1.1-gentoo-r6
filesystem-0.1.1-gentoo-r7
sphinx-0.9.9-gentoo-r3
spider-2.10-gentoo-r1"