随笔分类 -  Mysql

摘要:#server-id = 1log-bin = /var/log/mysql/mysql-bin.log#if you set the expire_logs_days = x var in the [mysqld] section of your my.cnf it will automatically rotate your bin logs after x days.expire_logs_... 阅读全文

posted @ 2007-11-13 15:49 Wade 阅读(762) 评论(0) 推荐(0)

摘要:Create a file backup_db.sh, and paste the following contents:#get the first parameter as the database nameDATABASE=$1#if no database specified, then you can set the default oneif [ -z $DATABASE ]; the... 阅读全文

posted @ 2007-11-13 15:49 Wade 阅读(401) 评论(0) 推荐(0)

导航