Plesk und Mysql auf Debian sarge

MySQL, PostgreSQL, SQLite
leechi
Posts: 33
Joined: 2005-02-10 17:16

Plesk und Mysql auf Debian sarge

Post by leechi » 2005-11-24 00:08

servus,

habe ein kleies problem,

mein server macht schon bei ca. 100 usern schlapp, vermute als erstes muss unbedingt mysql mal etwas aufgeholfen werden, denn es läuft ein shopsystem auf dem server.

dazu sei gesagt, debian sarge mit plesk 7.5.4 und mysql 4.xxx

was kann man da tun ??

hier meine my.cnf:

Code: Select all

#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "/var/lib/mysql/my.cnf" to set server-specific options or
# - "~/.my.cnf" to set user-specific options.
# 
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html

# This will be passed to all mysql clients
# It has been reported that passwords should be enclosed with ticks/quotes
# escpecially if they contain "#" chars...
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
[client]
port		= 3306
socket		= /var/run/mysqld/mysqld.sock

# Here is entries for some specific programs
# The following values assume you have at least 32M ram

# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket		= /var/run/mysqld/mysqld.sock
nice		= 0

[mysqld]
#
# * Basic Settings
#
user		= mysql
pid-file	= /var/run/mysqld/mysqld.pid
socket		= /var/run/mysqld/mysqld.sock
port		= 3306
basedir		= /usr
datadir		= /var/lib/mysql
tmpdir		= /tmp
language	= /usr/share/mysql/english
skip-external-locking
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address            = *.*.*.*
#
# * Fine Tuning
#
key_buffer		= 16M
max_allowed_packet	= 16M
thread_stack		= 128K
#
# * Query Cache Configuration
#
query_cache_limit	= 1048576
query_cache_size        = 16777216
query_cache_type        = 1
#
# * Logging and Replication
#
# Both location gets rotated by the cronjob.
# Be aware that this log type is a performance killer.
#log		= /var/log/mysql.log
#log		= /var/log/mysql/mysql.log
#
# Error logging goes to syslog. This is a Debian improvement :)
#
# Here you can see queries with especially long duration
#log-slow-queries	= /var/log/mysql/mysql-slow.log
#
# 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
# See /etc/mysql/debian-log-rotate.conf for the number of files kept.
max_binlog_size		= 104857600
#binlog-do-db		= include_database_name
#binlog-ignore-db	= include_database_name
#
# * BerkeleyDB
#
# The use of BerkeleyDB is now discouraged and support for it will probably
# cease in the next versions.
skip-bdb
#
# * InnoDB
#
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
# Read the manual for more InnoDB related options. There are many!
#
# * Security Feature
#
# Read the manual, too, if you want chroot!
# chroot = /var/lib/mysql/
#
# If you want to enable SSL support (recommended) read the manual or my
# HOWTO in /usr/share/doc/mysql-server/SSL-MINI-HOWTO.txt.gz
# ssl-ca=/etc/mysql/cacert.pem
# ssl-cert=/etc/mysql/server-cert.pem
# ssl-key=/etc/mysql/server-key.pem



[mysqldump]
quick
quote-names
max_allowed_packet	= 16M

[mysql]
#no-auto-rehash	# faster start of mysql but no tab completition

[isamchk]
key_buffer		= 16M

dazu sei auch noch gesagt, Pentium 4 3.2 mit aktuell einem GB Ram .

wäre sehr dankbar für hinweise.

lg leechi

cronet
Posts: 83
Joined: 2003-07-21 13:37
Location: Augsburg

Re: Plesk und Mysql auf Debian sarge

Post by cronet » 2005-11-24 00:44


leechi
Posts: 33
Joined: 2005-02-10 17:16

Re: Plesk und Mysql auf Debian sarge

Post by leechi » 2005-11-24 08:55

das habe ich,

probleme dabei ist, das variablen verwendet werden die in meiner config nicht vorkommen oder aber auch bei mir variablen stehen die im sticky nicht vorkommen !

denn mit der im sticky vorgezeigten cnf startet mein mysql nicht mehr !!(obwohl pfade angepasst sind)

darum die frage wie so eine my.cnf angepasst werden sollte !

cronet
Posts: 83
Joined: 2003-07-21 13:37
Location: Augsburg

Re: Plesk und Mysql auf Debian sarge

Post by cronet » 2005-11-24 11:28

Was sagt denn Dein error log, wenn Du die my.cnf anpasst und der Dienst nicht startet?

leechi
Posts: 33
Joined: 2005-02-10 17:16

Re: Plesk und Mysql auf Debian sarge

Post by leechi » 2005-11-24 11:51

Cronet wrote:Was sagt denn Dein error log, wenn Du die my.cnf anpasst und der Dienst nicht startet?
sorry, habe momentan produktiv zu tun, kann sowas immer nur nachts durchführen...

hat denn vielleicht schon jemand sowas durchgeführt auf nem system mit plesk ??

lg