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

MySQL InnoDB ´æ´¢ÒýÇæ »ù±¾²ÎÊý

 ×î½üÓöµ½¹ØÓÚInnoDBÒýÇæµÄÎÊÌ⣬ÔÚÍøÉÏ·­ÁË·­¾õµÃ´Ëƪ±È½ÏÒ×¶®£¬ÌØ´ËÍµÍµ×ªÔØÏ¡£
InnoDB×öΪMySQLĿǰ×î¹ã·ºµÄÊÂÎñ´æ´¢ÒýÇæ£¬ºÜ¶àµØ·½µÄÉè¼ÆºÍOracle¶¼Êǹ²Í¨µÄ¡£
¶ÔÓÚOracle DBAÀ´Ëµ£¬Ñ§Ï°µÄʱºò¿ÉÒÔ¶àºÍOracleµÄÒ»Ð©ÌØÐÔ½øÐÐÀà±È£¬µ±È»Ò²ÒªÃ÷°×¶þÕßÖ®¼äµÄÇø±ð¡£
innodb_additional_mem_pool_size
ÓÃÓÚ»º´æInnoDBÊý¾Ý×ֵ估ÆäËûÄÚ²¿½á¹¹µÄÄÚ´æ³Ø´óС£¬ÀàËÆÓÚOracleµÄlibrary cache¡£Õâ²»ÊÇÒ»¸öÇ¿ÖÆ²ÎÊý£¬¿ÉÒÔ±»Í»ÆÆ¡£
innodb_buffer_pool_size
Äڴ滺³å³Ø´óС£¬ÓÃÓÚ»º´æ±íºÍË÷ÒýÊý¾ÝµÈ¡£ÀàËÆÓÚOracleµÄbuffer cache£¬Èç¹û¿ÉÄÜ£¬¾¡¿ÉÄܵÄÉèÖôóÒ»µã¡£
innodb_log_buffer_size
ÈÕÖ¾»º³åÇø´óС£¬ÀàËÆÓÚOracleµÄlog buffer
innodb_log_file_size
ÈÕÖ¾Îļþ´óС¡£Ä¬Èϻᴴ½¨2¸ö5M´óСµÄÃûΪib_logfile0ºÍib_logfile1µÄÎļþ¡£ÈÕÖ¾ÎļþµÄÊýÄ¿ÓɲÎÊýinnodb_log_files_in_groupÖ¸¶¨¡£´æ·ÅλÖÃÓÉinnodb_log_group_home_dirÖ¸¶¨¡£
innodb_data_file_path
Ö¸¶¨InnoDB±í¿Õ¼äÊý¾ÝÎļþÃû£¬´óСÒÔ¼°ÆäËûÊôÐÔ¡£ËùÓÐÎļþµÄ¼ÓÆðÀ´²»ÄÜÉÙÓÚ10M¡£¶à¸öÊý¾ÝÎļþÖ®¼äÒÔ¶ººÅ·Ö¸î£¬ÊôÐÔÖ®¼äÒÔðºÅ·Ö¸î¡£Ä¬ÈÏ´´½¨Ò»¸ö´óС10MBÃûΪibdata1µÄ¿É×Ô¶¯À©Õ¹µÄÊý¾ÝÎļþ£¬Ò»°ãÔÚÉú²ú»·¾³Öж¼ÐèÒª¸ù¾Ýʵ¼ÊÇé¿öÖ¸¶¨£¬ÓÉÓÚÍù±í¿Õ¼äÖÐÌí¼ÓÊý¾ÝÎļþÐèҪͣ»ú£¬¾¡Á¿Ôڹ滮µÄʱºò×öºÃ×¼±¸£¬Èç¹û¿ÉÒԵϰ×îºÃ¿ªÆô×îºóÒ»¸öÊý¾ÝÎļþµÄ×Ô¶¯Ôö³¤ÊôÐÔ¡£Êý¾ÝÎļþµÄ¸öÊýÔڹ滮µÄʱºò»¹ÐèÒª¿¼ÂÇÁíÍâÒ»¸öinnodb_open_files²ÎÊý¡£
innodb_file_per_table
ȡֵΪON»òÕßOFF¡£ÊÇ·ñΪÿ¸ötableʹÓõ¥¶ÀµÄÊý¾ÝÎļþ±£´æ¡£Èç¹ûϵͳÖбíµÄ¸öÊý²»¶à£¬²¢ÇÒûÓг¬´ó±í£¬Ê¹ÓøòÎÊý¿ÉÒÔʹµÃ¸÷¸ö±íÖ®¼äµÄά»¤Ïà¶Ô¶ÀÁ¢£¬ÓÐÒ»¶¨µÄºÃ´¦¡£
innodb_autoextend_increment
µ±×Ô¶¯À©Õ¹±í¿Õ¼ä±»ÌîÂú֮ʱ£¬Ã¿´ÎÀ©Õ¹¿Õ¼äµÄ´óС£¬Ä¬ÈÏÖµÊÇ8(µ¥Î»MB)¡£¸Ã²ÎÊý¿ÉÒÔ¶¯Ì¬Ð޸ģº
mysql> set global innodb_autoextend_increment=10;
Query OK, 0 rows affected (0.01 sec)
innodb_status_file
¶¨ÆÚ½«show inndb statusµÄ½á¹ûÊä³ö±£´æµ½ÎļþÖУ¬½¨Ò鿪ÆôÒÔ±ã·ÖÎöÐÔÄÜ¡£
ÏÂÃæÊÇwindowsÉÏÒ»¸öMySQLĬÈϵIJÎÊý²éѯ½á¹û£º
mysql> show variables like 'Innodb%';
+---------------------------------+------------------------+
| Variable_name                   | Value  &n


Ïà¹ØÎĵµ£º

ÈçºÎʹÓÃMySQLÌáÉýȨÏÞ


ǰ²»¾ÃÍøÉϹ«¿ªÁËÒ»¸öMySQL FuncµÄ©¶´,½²µÄÊÇʹÓÃMySQL´´½¨Ò»¸ö×Ô¶¨ÒåµÄº¯Êý,È»ºóͨ¹ýÕâ¸öº¯ÊýÀ´¹¥»÷·þÎñÆ÷¡£×îÔç¿´µ½Ïà¹ØµÄ±¨µÀÊÇÔÚo-otikÉÏ,µ«Êǹ«²¼µÄÊÇÕë¶Ô UnixϵͳµÄExploit,²¢Çҳɹ¦ÂÊÒ²²»ÊǺܸß.¶ø½üÆÚ,¹úÄÚÓиßÊַųöÕë¶ÔWinϵͳµÄÏà¹ØÎÄÕÂ,ÓÚÊÇÎÒÂíÉÏÕÒÀ´ÓëÅóÓÑһͬÑо¿.
ÆäʵÎÒÃÇÔç¾ÍÄÜÏëµ½.µ±ÎÒÃÇÔÚ¶ÔMSSQL ......

MySQL Storage Engine

http://www.javaeye.com/topic/211951
Õâ¶Îʱ¼äÔÚ¿´¡¶High Performance MySQL¡·£¬¿´µ½´æ´¢ÒýÇæÕâ¸öµØ·½¸Ðµ½ºÜ¶àϸ½Ú±È½ÏİÉú£¬ËùÒÔ×ܽáС¼ÇһЩ
ΪÁËÊÊÓ¦¸÷ÖÖ²»Í¬µÄÔËÐл·¾³£¬MYSQLÌṩÁ˶àÖÖ²»Í¬µÄ´æ´¢ÒýÇæ£¨Storage Engine £©,ÔÚÓ¦ÓóÌÐò¿ª·¢Õâ¸ö²ãÃæÉÏ£¬¿ª·¢Õß¿ÉÒÔ¸ù¾Ý²»Í¬µÄÐèÇóÑ¡ÔñÊʺϵÄStorage Engine ·½°¸£¬¸üΪÁ ......

XAMPP 1.7.0ÖÐMySqlÎÞ·¨Æô¶¯½â¾ö·½·¨

ÎÒÔÚ°²×°XAMPP 1.7.0ʱ£¬°²×°³É¹¦ºó£¬´òËãÆô¶¯XAMPP¡£Apache˳ÀûÆô¶¯£¬µ«ÊÇMySqlÔõô¶¼Æô¶¯²»ÁË£¬ÌáʾµÄ´íÎóÊÇ£º
error:mysql service not started [-1]
ÎÒÖØÐÂ×°Á˼¸´Î¶¼²»ÐУ¬ÏÂÔØÁËÆäËûµÄ°æ±¾Ò²²»ÐУ¬ÎÒÕæ¸ã²»Çå³þΪʲô¡£ÎÒGoogleÁ˰ëÌ죬ÆðÏÈʱÖÐÎÄÍøÒ³£¬°´ÕÕ¼¸¸ö½â¾ö·½·¨×öÁ˶¼²»ÐУ¬¿Ï¶¨ÊÇûÓжÔÖ¢ÏÂÒ©°Ñ£¬È»ºóÎÒµ ......

[ת]mysqlÐÔÄܵļì²éºÍµ÷ÓÅ·½·¨

ÎÒÒ»Ö±ÊÇʹÓÃmysqlÕâ¸öÊý¾Ý¿âÈí¼þ£¬Ëü¹¤×÷±È½ÏÎȶ¨£¬Ð§ÂÊÒ²ºÜ¸ß¡£ÔÚÓöµ½ÑÏÖØÐÔÄÜÎÊÌâʱ£¬Ò»°ã¶¼ÓÐÕâô¼¸ÖÖ¿ÉÄÜ£º
1¡¢Ë÷ÒýûÓн¨ºÃ£»
2¡¢sqlд·¨¹ýÓÚ¸´ÔÓ£»
3¡¢ÅäÖôíÎó£»
4¡¢»úÆ÷ʵÔÚ¸ººÉ²»ÁË£»
1¡¢Ë÷ÒýûÓн¨ºÃ
Èç¹û¿´µ½mysqlÏûºÄµÄcpuºÜ´ó£¬¿ÉÒÔÓÃmysqlµÄclient¹¤¾ßÀ´¼ì²é¡£
ÔÚlinuxÏÂÖ´ÐÐ
/usr/local/mysql/bin/ ......

MYSQL Íâ¼ü¶¨Òå




½¨Á¢Íâ¼üµÄǰÌ᣺ ±¾±íµÄÁбØÐëÓëÍâ¼üÀàÐÍÏàͬ(Íâ¼ü±ØÐëÊÇÍâ±íÖ÷¼ü)¡£
Íâ¼ü×÷Ó㺠ʹÁ½ÕűíÐγɹØÁª£¬Íâ¼üÖ»ÄÜÒýÓÃÍâ±íÖеÄÁеÄÖµ£¡
Ö¸¶¨Ö÷¼ü¹Ø¼ü×Ö£º foreign key(ÁÐÃû)
ÒýÓÃÍâ¼ü¹Ø¼ü×Ö£º references <Íâ¼ü±íÃû>(Íâ¼üÁÐÃû)
ʼþ´¥·¢ÏÞÖÆ: on deleteºÍon update , ¿ÉÉè²ÎÊýcascade(¸úËæÍâ¼ü¸Ä¶¯ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ