http://forum.slime.com.tw/thread208416.html
管理 MySQL 最讓人困擾的就是如何有效的掌握 MySQL 的健康狀況,因為 MySQL 雖然有提供許多系統變數值供您參考,但這些零散的數據若要手動搜集與過濾將會是一件十分沒有效率的事情(除非您寫 Scripts 去分析)。而接下來要介紹的這套 "工具" 其實是由 hackmysql.com 的站長所撰寫的 Perl Scritps,旨在協助 MySQL DBA 搜集與分析 MySQL 的運作狀況。
付爸爸 發表在 痞客邦 留言(0) 人氣(2,959)
付爸爸 發表在 痞客邦 留言(0) 人氣(1,551)
MySQL 遠端連線很慢
if mysql client to connect remote mysql server is slow,
maybe 5 to 6 sec
付爸爸 發表在 痞客邦 留言(0) 人氣(1,298)
http://www.webcheatsheet.com/sql/mysql_backup_restore.php
我主要是找big database's backup
這篇文章找到了,還說明的蠻詳細的
Back up your MySQL Database with Compress
If your mysql database is very big, you might want to compress the output of mysqldump. Just use the mysql backup command below and pipe the output to gzip, then you will get the output as gzip file.
$ mysqldump -u [uname] -p[pass] --flush-logs --opt [dbname] | gzip -9 > [backupfile.sql.gz]
付爸爸 發表在 痞客邦 留言(0) 人氣(182)
1. offline backup
mysqld stop
tar zcvf db_960614.tar.gz /var/lib/mysql
mysqld start
付爸爸 發表在 痞客邦 留言(0) 人氣(103)