ÎÒÃǾ³£Òª¶ÔÊý¾Ý¿â×ö±¸·Ý£¬¿âÀïÃæÓкü¸¸öschema£¬Í¦Âé·³µÄ£¬Ð´¸ö½Å±¾£¬àÅ£¬·½±ã
Ä¿Ç°µÄÓû§Ãû£¬ÃÜÂ룬host¶¼ÊÇдËÀÔڽű¾ÀÕâÑù±È½Ï·½±ã£¬ÓÐÐèÒªµÄÅóÓÑ¿ÉÒÔ°ÑËû¸Ä³É¶Á²ÎÊýµÄ£¬
»òÕßÊÇwindows·ç¸ñµÄÏÂÒ»²½
#!/bin/bash t=`date +%Y%m%d_%H%M` p_user=root p_pwd=123456 p_host=127.0.0.1 #´ÓÊý¾Ý¿âÖжÁ³ö±í½á¹¹ echo 'select SCHEMA_NAME from SCHEMATA ' > sql #p_all_db=(gzcore gzchar gzrealmd gzshop) p_all_db=(`mysql -h${p_host} -u${p_user} -p${p_pwd} information_schema < sql`) rm sql #Èç¹ûÎļþ¼Ð´æÔÚÔòɾ³ý #[[ -d ${p_host} ]] || rm -rf ${p_host} #´´½¨ÐÂÎļþ¼Ð mkdir ${p_host} 2>/dev/null cd ${p_host} #Éú³É for i in ${p_all_db[*]} do if [ "SCHEMA_NAME" = $i ] || [ "information_schema" = $i ] || [ "mysql" = $i ];then echo "skip ${p_host} $i" continue else echo "bak ${p_host} $i .." rm -f ${PWD}/${i}_${t}.dump 2>/dev/null mysqldump -u${p_user} -p${p_pwd} -h${p_host} --databases $i > ${PWD}/${i}_${t}.dump fi done #·µ»ØÔÀ´µÄ·¾¶ cd ..
ÍƼöÐÅÏ¢
- ¡¾ÊÓƵ²¥·Å¡¿JplayerÊÓƵ²¥·ÅÆ÷µÄʹÓÃ
- memcacheÄÚ´æÔÀí
- Memcache¼¼Êõ·ÖÏí£º½éÉÜ¡¢Ê¹Óᢴ洢¡¢Ëã·¨¡¢ÓÅ»¯....
- php³£ÓÃÕýÔò±í´ïʽ
- phpÐÔÄܼà²âÄ£¿éXHProf
- ÈÃCI¿ò¼ÜÖ§³Öservice²ã
- ʹÓÃPHPÉú³É´øLOGOµÄ¸öÐÔ»¯¶þάÂëͼÏñ
- ¹ØÓÚCodeIgniterÄã¿ÉÄܲ»ÖªµÀµÄ5¸ö֪ʶµã
- Memcache ºÁÃ뼶³¬Ê±¼°ÆäËû³£¼ûÎÊÌâ»ã×Ü
- [PHP±Ê¼Ç]PHPQueryÒ»¸ö´¦ÀíDOMµÄÀûÆ÷
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- PHP»ñÈ¡Óû§µÄÕæʵIP£¬²¢ÅжÏÊÇ·ñÄÚÍøIP
- PHP ´íÎóÈÕÖ¾ error_log
- ÀûÓÃbigpipe»úÖÆʵÏÖÒ³ÃæÄ£¿éµÄÒì²½äÖȾ chunked¼¼Êõ
- php¿ØÖÆÎļþÏÂÔØËÙ¶È
- js + php ¶ÁÈ¡¡¢²¥·ÅÊÓƵÁ÷ ¼æÈÝfirefox£¬c....
- ¡¾ÊÓƵ²¥·Å¡¿JplayerÊÓƵ²¥·ÅÆ÷µÄʹÓÃ
- UNICODE Óë UTF-8 µÄ¹Øϵ
- memcacheÄÚ´æÔÀí
- Memcache¼¼Êõ·ÖÏí£º½éÉÜ¡¢Ê¹Óᢴ洢¡¢Ëã·¨¡¢ÓÅ»¯....
- phpʹÓÃmb_detect_encoding¼ì²â×Ö·û´®±àÂë
ÆÀÂÛ