Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Óöµ½µÄÒ»¸ömysql±¸·Ý»Ö¸´µÄÎÊÌâ

Êý¾Ý¿âÌصã
£­£­Ê¹ÓÃpartition£¬´æÔÚÉÏ°Ù¸ö·ÖÇø
£­£­½¨±íʱָ¶¨ÁËdata_dirºÍindex_dir£¬Êý¾Ý²»ÊÇ´æ´¢ÔÚĬÈÏλÖ㬶øÊÇÔÚmysqldµÄÊý¾ÝĿ¼ÏÂlinkµ½ÕæÕýµÄÊý¾ÝÎļþ
±¸·Ý»Ö¸´ÒªÇó
£­£­±¸·Ý³öÀ´µÄÊý¾Ý»Ö¸´Ê±Òª»Ö¸´³É²»Í¬µÄ±íÃû
£­£­»Ö¸´³öÀ´µÄÊý¾Ýʵ¼Ê´æ´¢Î»ÖÃÒ²Òª´æ´¢ÔÚÓëÔ­±í²»Í¬µÄλÖÃ
ÎÊÌâ
Èç¹ûÖ±½Ómysqldump£­source»Ö¸´£­change table name£¬ÔòбíµÄ´æ´¢Î»ÖÃÎÞ·¨Âú×ãÒªÇó£¬linkµ½µÄλÖñØÈ»ÊÇ´íÎóµÄ£¬ÐèÒªÐÞ¸ÄmysqldÊý¾ÝĿ¼ÏµÄÊý°Ù¸öÈíÁ´½Ó
±¸·Ý¹ý³Ì
mysqldump -uroot -p$dbpassword -h$srcip $dbname $tablename > $tablename.data
ÐÅÏ¢Ð޸Ĺý³Ì
sed -e "s/$origname/$newname/g" $tablename.data > $tablename.data.tmp1
rm -f $tablename.data
sed -e "s/$origloc/$newloc/g" $tablename.data.tmp1 > $tablename.data.tmp2
rm -f $tablename.data.tmp1
mv $tablename.data.tmp2 $tablename.data
»Ö¸´¹ý³Ì
mysql -u$dbuser -p$dbpassword -h$destip -e"$createdbsql"
mysql -u$dbuser -p$dbpassword -h$destip $dbname -e"source $tablename.data"


Ïà¹ØÎĵµ£º

MySQL Cluster Core Concepts


NDBCLUSTER
(also known as NDB
) is an in-memory
storage engine offering high-availability and data-persistence
features.

The NDBCLUSTER
storage engine can be
configured with a range of failover and load-balancing options,
but it is easiest t ......

excelÊý¾ÝÅúÁ¿µ¼Èëµ½MysqlÊý¾Ý¿â

aspxÒ³Ãæ
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="customin.aspx.cs" Inherits="kf_customin" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" ......

mysql»ù±¾Ó÷¨

http://dev.mysql.com/doc/refman/5.1/zh/index.html
(MySql 5.1 ÖÐÎIJο¼ÊÖ²á)
*------------------------------------------------------------------------------------------
show databases; ÏÔʾÊý¾Ý¿â
drop database Êý¾Ý¿âÃû;ɾ³ýÊý¾Ý¿â
set names 'utf8';ÉèÖÃÊý¾Ý¿â±àÂëΪutf-8
source x:\Êý¾Ý¿âÃû.sql;µ¼È ......

¡¾×ª¡¿³£ÓÃmysql²Ù×÷ÃüÁî

   
Administration ¹ÜÀí
Kill a Thread  ½áÊøÒ»¸öÏß³Ì
mysql > KILL 999;
 
Optimize Table ÓÅ»¯±í
mysql > OPTIMEZE TABLE foo;
 
Reload Users Permissions Ë¢ÐÂMySQLϵͳȨÏÞÏà¹Ø±í  
mysql > FLUSH PRIVILEGES;
 
Repair Table ÐÞ¸´±í
mysql > ......

MySQL ÖÐÎÄÏÔʾÂÒÂë

×î½ü¹ØÓÚÖÐÎÄÏÔʾÂÒÂëµÄÌù×ӱȽ϶࣬ËùÒÔÒ²×öÁ˸ö×ܽ᣺
¿ÉÒԲο¼Ò»ÏÂÑîÌÎÌΰæÖ÷µÄ¡¶¸÷ÖÖÂÒÂëÎÊÌâ»ã×Ü¡·
http://topic.csdn.net/u/20071124/08/3b7eae69-ed1d-4a77-8895-9930bf3601af.html
MySQL×Ö·û¼¯µÄÔ­Àí½éÉÜ¡£ÕªÂ¼ÓÚ¹Ù·½Îĵµ¡£http://dev.mysql.com/doc/refman/5.1/zh/charset.html
²»Í¬µÄ±àÂë¸ñʽ»áµ¼ÖÂͬһ×Ö· ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ