MySQL Logging aktivieren?

Alles, was MariaDB und MySQL betrifft, kann hier besprochen werden.

Postby skunker » 25. July 2006 08:14

hi, wenn mysql ein fehler ausgibt weil es keinen log schreiben kann steht das im allgemeinen serverlog unter /var/log...

schau da mal rein vielleicht meckert ja mysql.
skunker
 
Posts: 7
Joined: 22. July 2006 05:37

Postby kalleplom » 25. July 2006 13:07

in mysqlderror.log wir ja was hinein geschrieben. Aber nur, wenn ich MySQL starte.
Die erwähnten Fehlermeldungen waren:
Code: Select all
server:~# /opt/lampp/bin/mysql -u root
/opt/lampp/bin/mysql: unknown variable 'log=/var/log/mysqld.log'


Das hat sich aber geklärt.

In /var/log/syslog kommt mysql nicht vor.
Ich weiss auch nicht, es ist doch alles richtig konfiguriert....

hier die conf:
Code: Select all
[client]
#password   = your_password
port      = 3306
socket      = /opt/lampp/var/mysql/mysql.sock
#datadir   = /opt/lampp/var/mysql/mysql


[mysqld]

log             = /var/log/mysqld.log
log-error       = /var/log/mysqlderror.log


# commented out by lampp security
#port      = 3306
port = 0
socket      = /opt/lampp/var/mysql/mysql.sock
skip-locking
key_buffer = 16M
max_allowed_packet = 1M
table_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M

#skip-networking

#log-bin=mysql-bin

server-id   = 1

#server-id       = 2
#
#master-host     =   <hostname>
#
#master-user     =   <username>
#
#master-password =   <password>
#
#master-port     =  <port>
#
#log-bin=mysql-bin




# Point the following paths to different dedicated disks
#tmpdir      = /tmp/      
#log-update    = /path-to-dedicated-directory/hostname

# Uncomment the following if you are using BDB tables
#bdb_cache_size = 4M
#bdb_max_lock = 10000

# Comment the following if you are using InnoDB tables
#skip-innodb
innodb_data_home_dir = /opt/lampp/var/mysql/
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = /opt/lampp/var/mysql/
innodb_log_arch_dir = /opt/lampp/var/mysql/
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
innodb_buffer_pool_size = 16M
innodb_additional_mem_pool_size = 2M
# Set .._log_file_size to 25 % of buffer pool size
innodb_log_file_size = 5M
innodb_log_buffer_size = 8M
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 50

[mysqldump]
quick
max_allowed_packet = 16M

[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates

[isamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

[myisamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

[mysqlhotcopy]
interactive-timeout
kalleplom
 
Posts: 28
Joined: 16. October 2005 20:24

Previous

Return to MariaDB - MySQL

Who is online

Users browsing this forum: No registered users and 15 guests