Ich habe ein paar Fragen zur MySQL Sicherung.
In http://dev.mysql.com/doc/refman/4.1/en/ ... ntion.html wird empfohlen mysqld mit der Option --log-bin zu restarten:
2. Stop mysqld if it is running, then start it with the --log-bin[=file_name] option. See Section 5.11.4, “The Binary Log”. The binary log files provide you with the information you need to replicate changes to the database that are made subsequent to the point at which you executed mysqldump.
Code: Alles auswählen
# ps axu|grep mysql
root 11582 0.0 0.0 2564 1280 ? S Mar29 0:00 /bin/sh /usr/bin/mysqld_safe
mysql 11667 0.0 0.3 133832 26036 ? S Mar29 0:17 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock
root 11668 0.0 0.0 1496 504 ? S Mar29 0:00 logger -p daemon.err -t mysqld_safe -i -t mysqld
Code: Alles auswählen
# 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
Eine weitere Frage bezieht sich darauf, ob ich die InnoDB sichern muss. Sie scheint ja per default aktiviert zu sein, mit ps finde ich aber nichts.
Code: Alles auswählen
#
# * 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!