MySQL Storage Engine
http://www.javaeye.com/topic/211951
Õâ¶Îʱ¼äÔÚ¿´¡¶High Performance MySQL¡·£¬¿´µ½´æ´¢ÒýÇæÕâ¸öµØ·½¸Ðµ½ºÜ¶àϸ½Ú±È½ÏÄ°Éú£¬ËùÒÔ×ܽáС¼ÇһЩ
ΪÁËÊÊÓ¦¸÷ÖÖ²»Í¬µÄÔËÐл·¾³£¬MYSQLÌṩÁ˶àÖÖ²»Í¬µÄ´æ´¢ÒýÇ棨Storage Engine £©,ÔÚÓ¦ÓóÌÐò¿ª·¢Õâ¸ö²ãÃæÉÏ£¬¿ª·¢Õß¿ÉÒÔ¸ù¾Ý²»Í¬µÄÐèÇóÑ¡ÔñÊʺϵÄStorage Engine ·½°¸£¬¸üΪÁé»îµÄÊÇ£¬Äã¿ÉÒÔ¸ù¾ÝÿÕÅ±í½«Òª´æ´¢Êý¾ÝµÄÌص㣬ѡÔñ²»Í¬µÄStorage Engine,Ò²¾ÍÊÇ˵£¬ÔÚÒ»¸öMYSQLÊý¾Ý¿âÖУ¬¿ÉÒÔ»ìºÏʹÓöàÖÖ²»Í¬µÄStorage Engine
Ê×ÏÈСƳһÏÂMySQLµÄÌåϵ½á¹¹£¬ÔÚ×î¸ß³éÏó²ã¶ÈÏ£¬¿ÉÒÔÓÃGarlan & ShawµÄ·Ö²ã½á¹¹ÌåϵÀ´±íʾ£¨×ó£©
ÆäÖÐÓ¦ÓòãΪËùÓÐRDBMSÓû§ÌṩÓû§½Ó¿Ú£¬Âß¼²ã°üÀ¨ÁËËùÓкËÐŦÄܵÄʵÏÖ£¬ÎïÀí²ãÔò¸ºÔð½«Êý¾Ý´æ´¢ÔÚÓ²¼þÉ豸ÉÏ¡£
ͼÖÐÓÒ²à¸üΪ¾ßÌåµÄÃèÊöÁËÂß¼²ãµÄ×é³É£¬²éѯ´¦Àí×Óϵͳ¡¢ÊÂÎñ¹ÜÀí×Óϵͳ¡¢»Ö¸´¹ÜÀí×ÓϵͳºÍ´æ´¢¹ÜÀí×Óϵͳ¹²Í¬×é³ÉÁËMySQLµÄÂß¼²ã¡£ÏàÐÅStorage EngineµÄλÖÃÊÇÔÚStorage Management´¦£¬¼ÈStorage EngineÊôÓÚStorage Management×ÓϵͳµÄÒ»²¿·Ö
ΪÁËÈÃ˼·¸üÇåÎúһЩ£¬ÏÂÃæ¸ø³öÒ»·ù±È½ÏÈ«ÃæµÄÌåϵ½á¹¹Í¼£¨»ò¸üÈ·ÇеÄ˵ÊÇÁ÷³Ìͼ£¬Ö»ÊǺöÂÔÁË·´À¡£©
ÉÏÃæÈý·ùͼÀ´×ÔÓÚһƪ·Ç¹Ù·½£¨²»±£Ö¤°Ù·Ö°ÙµÄÕýÈ·£©µÄMySQLÌåϵ½á¹¹µÄ±¨¸æ£¬Ó롶High Performance MySQL¡·Ò»ÊéÖиø³öµÄMySQL´óÌå½á¹¹£¨ÏÂͼ,»ù±¾¶ÔÓ¦ÓÚLogic Layer£¬´ÓµÚÒ»·ùͼÓÒ²à¿ÉÒÔ¿´³öMySQL logic layerͬÑù×ñ´Ó·Ö²ãÌåϵ½á¹¹£©»¹ÊDZȽÏÎǺϵġ£
Á¬½ÓÉÏͼÖеڶþ²ãºÍµÚÈý²ãÖ®¼äµÄ½Ó¿ÚÊDz¢²»Õë¶ÔÈκδ洢ÒýÇæµÄµ¥Ò»API,.´ó¸ÅÓÉ20¸ö»ù±¾µÄÀàËÆ“Æô¶¯ÊÂÎñ£¬·µ»Ø½á¹û¼¯”µÈº¯Êý×é³É¡£´æ´¢ÒýÇæ²¢²»´¦ÀíSQL£¬Ï໥֮¼äÒ²²»Í¨ÐÅ£¬ËüÃǵÄÈÎÎñÖ»ÊǼòµ¥µÄÏìÓ¦¸ß²ã´«À´µÄÇëÇó¡£
´æ´¢ÒýÇæ¸÷×ÔµÄһЩÌصã
ÉÏÃæÌáµ½µÄËÄÖÖ´æ´¢ÒýÇ涼Óи÷×ÔÊÊÓõĻ·¾³£¬ÕâÈ¡¾öÓÚËüÃǶÀÓеÄһЩÌØÕ÷¡£Ö÷ÒªÌåÏÖÔÚÐÔÄÜ¡¢ÊÂÎñ¡¢²¢·¢¿ØÖÆ¡¢²ÎÕÕÍêÕûÐÔ¡¢»º´æ¡¢ ¹ÊÕϻָ´£¬±¸·Ý¼°»Ø´æµÈ¼¸¸ö·½Ãæ
Ä¿Ç°±È½ÏÆÕ¼°µÄ´æ´¢ÒýÇæÊÇMyISAMºÍInnoDB.¶øMyISAMÓÖÊǾø´ó²¿·ÖWebÓ¦ÓõÄÊ×Ñ¡¡£MyISAMÓëInnoDBµÄÖ÷ÒªµÄ²»Í¬µãÔÚÓÚÐÔÄܺÍÊÂÎñ¿ØÖÆÉÏ¡£
MyISAMÊÇÔçÆÚISAM(Indexed Sequential Access Method,ÎÒÏÖÔÚÓõÄMySQL5.0ÒѾ²»Ö§³ÖISAMÁË£©µÄÀ©Õ¹ÊµÏÖ£¬ISAM±»Éè¼ÆΪÊʺϴ¦Àí¶ÁƵÂÊÔ¶´óÓÚдƵÂÊÕâÑùÒ»ÖÖÇé¿ö£¬Òò´ËISAMÒÔ¼°ºóÀ´µÄMyISAM¶¼Ã»Óп¼ÂǶÔÊÂÎïµÄÖ§³Ö£¬ÅųýÁËTPM£¬²»ÐèÒªÊÂÎñ¼Ç¼£¬ISAMµÄ²éѯЧÂÊÏ൱¿É¹Û£¬¶øÇÒÄÚ´æÕ¼ÓúÜÉÙ¡£My
Ïà¹ØÎĵµ£º
¡¡¡¡ÒÔMySQL-server-4.0.14-0.i386.rpmΪÀý£¬·ÅÔÚ/dataĿ¼ÏÂ
¡¡¡¡cd /data
¡¡¡¡rpm -ivh MySQL-server-4.0.14-0.i386.rpm
¡¡¡¡°²×°Íê³ÉºóÔÚ/usr/share/mysqlĿ¼ÖлáÓÐÒ»¸ömysqlµÄÆô¶¯½Å±¾mysql.server¼°Ê¾ÀýÅäÖÃÎļþµÈ(Èçmy-huge.cnf¡¢my-large.cnf¡¢my-medium.cnf)
¡¡¡¡¿½±´Ò»¸öʾÀýÅäÖÃÎ ......
import java.sql.*;
/*
* JAVAÁ¬½ÓACCESS£¬SQL Server,MySQL,OracleÊý¾Ý¿â
*
* */
public class JDBC {
public static void main(String[] args)throws Exception {
Connection conn=null;
//====Á¬½ÓACCESSÊý¾Ý¿â ......
Ç°Ì᣺MySQLÖдæÔÚÒ»¸öÓû§×Ô¼º½¨Á¢µÄÊý¾Ý¿â£¬¼ÙÉèΪmydb£¬mydbÖÐÓÐÒ»ÕÅÓû§×Ô¼º½¨Á¢µÄ±í¸ñ£¬¼ÙÉèÃû³ÆΪmytable
ÎÒµÄÇ°Ì᣺MySQLÖдæÔÚÁ½¸öÊý¾Ý¿â£¬yldbºÍyldb2£¬ÆäÖÐyldbÊý¾Ý¿âÖÐÓÐÒ»ÕÅ±í£¬ÃûΪpet
Ò».MYSQLµÄÃüÁîÐÐģʽµÄÉèÖãº
×ÀÃæ->ÎҵĵçÄÔ->ÊôÐÔ->»·¾³±äÁ¿->н¨->
PATH=“£»path\mysql\bin ......
²Ù×÷Êý¾Ý¿â
µÇ¼µ½mysqlÖУ¬È»ºóÔÚmysqlµÄÌáʾ·ûÏÂÔËÐÐÏÂÁÐÃüÁÿ¸öÃüÁîÒԷֺŽáÊø¡£
1¡¢ ÏÔʾÊý¾Ý¿âÁÐ±í¡£
show databases;
ȱʡÓÐÁ½¸öÊý¾Ý¿â£ºmysqlºÍtest¡£ mysql¿â´æ·Å×ÅmysqlµÄϵͳºÍÓû§È¨ÏÞÐÅÏ¢£¬ÎÒÃǸÄÃÜÂëºÍÐÂÔöÓû§£¬Êµ¼ÊÉϾÍÊǶÔÕâ¸ö¿â½øÐвÙ×÷¡£
2¡¢ ÏÔʾ¿âÖе ......