MySQLÖеķÖÇø¸ÅÊö
SQL±ê×¼ÔÚÊý¾Ý´æ´¢µÄÎïÀí·½ÃæûÓÐÌṩ̫¶àµÄÖ¸ÄÏ¡£SQLÓïÑÔµÄʹÓöÀÁ¢ÓÚËüËùʹÓõÄÈκÎÊý¾Ý½á¹¹»òͼ±í¡¢±í¡¢ÐлòÁÐϵĽéÖÊ¡£µ«ÊÇ£¬´ó²¿·Ö¸ß¼¶Êý¾Ý¿â¹ÜÀíϵͳÒѾ¿ª·¢ÁËһЩ¸ù¾ÝÎļþϵͳ¡¢Ó²¼þ»òÕßÕâÁ½ÕßÀ´È·¶¨½«ÒªÓÃÓÚ´æ´¢Ìض¨Êý¾Ý¿éÎïÀíλÖõķ½·¨¡£ÔÚMySQLÖУ¬InnoDB´æ´¢ÒýÇ泤ÆÚÖ§³Ö±í¿Õ¼äµÄ¸ÅÄ²¢ÇÒMySQL·þÎñÆ÷ÉõÖÁÔÚ·ÖÇøÒýÈë֮ǰ£¬¾ÍÄÜÅäÖÃΪ´æ´¢²»Í¬µÄÊý¾Ý¿âʹÓò»Í¬µÄÎïÀí·¾¶¡£
·ÖÇøÓÖ°ÑÕâ¸ö¸ÅÄîÍƽøÁËÒ»²½£¬ËüÔÊÐí¸ù¾Ý¿ÉÒÔÉèÖÃΪÈÎÒâ´óСµÄ¹æÔò£¬¿çÎļþϵͳ·ÖÅäµ¥¸ö±íµÄ¶à¸ö²¿·Ö¡£Êµ¼ÊÉÏ£¬±íµÄ²»Í¬²¿·ÖÔÚ²»Í¬µÄλÖñ»´æ´¢Îªµ¥¶ÀµÄ±í¡£Óû§ËùÑ¡ÔñµÄ¡¢ÊµÏÖÊý¾Ý·Ö¸îµÄ¹æÔò±»³ÆΪ·ÖÇøº¯Êý£¬ÕâÔÚMySQLÖÐËü¿ÉÒÔÊÇÄ£Êý£¬»òÕßÊǼòµ¥µÄÆ¥ÅäÒ»¸öÁ¬ÐøµÄÊýÖµÇø¼ä»òÊýÖµÁÐ±í£¬»òÕßÊÇÒ»¸öÄÚ²¿HASHº¯Êý£¬»òÒ»¸öÏßÐÔHASHº¯Êý¡£º¯Êý¸ù¾ÝÓû§Ö¸¶¨µÄ·ÖÇøÀàÐÍÀ´Ñ¡Ôñ£¬°ÑÓû§ÌṩµÄ±í´ïʽµÄÖµ×÷Ϊ²ÎÊý¡£¸Ã±í´ïʽ¿ÉÒÔÊÇÒ»¸öÕûÊýÁÐÖµ£¬»òÒ»¸ö×÷ÓÃÔÚÒ»¸ö»ò¶à¸öÁÐÖµÉϲ¢·µ»ØÒ»¸öÕûÊýµÄº¯Êý¡£Õâ¸ö±í´ïʽµÄÖµ´«µÝ¸ø·ÖÇøº¯Êý£¬·ÖÇøº¯Êý·µ»ØÒ»¸ö±íʾÄǸöÌض¨¼Ç¼Ӧ¸Ã±£´æÔÚÄĸö·ÖÇøµÄÐòºÅ¡£Õâ¸öº¯Êý²»ÄÜÊdz£Êý£¬Ò²²»ÄÜÊÇÈÎÒâÊý¡£Ëü²»ÄÜ°üº¬Èκβéѯ£¬µ«ÊÇʵ¼ÊÉÏ¿ÉÒÔʹÓÃMySQL ÖÐÈκοÉÓõÄSQL±í´ïʽ£¬Ö»Òª¸Ã±í´ïʽ·µ»ØÒ»¸öСÓÚMAXVALUE£¨×î´ó¿ÉÄܵÄÕýÕûÊý£©µÄÕýÊýÖµ¡£
µ±¶þ½øÖÆÂë±ä³É¿ÉÓÃʱ£¨Ò²¾ÍÊÇ˵£¬5.1 -max ¶þ½øÖÆÂ뽫ͨ¹ý--with-partition ½¨Á¢£©£¬·ÖÇøÖ§³Ö¾Í½«°üº¬ÔÚMySQL 5.1µÄ-max °æ±¾ÖС£Èç¹ûMySQL¶þ½øÖÆÂëÊÇʹÓ÷ÖÇøÖ§³Ö½¨Á¢µÄ£¬ÄÇô¼¤»îËü²»ÐèÒªÈκÎÆäËûµÄ¶«Î÷ (ÀýÈ磬ÔÚmy.cnf ÎļþÖУ¬²»ÐèÒªÌØÊâµÄÌõÄ¿)¡£¿ÉÒÔͨ¹ýʹÓÃSHOW VARIABLESÃüÁîÀ´È·¶¨MySQLÊÇ·ñÖ§³Ö·ÖÇø£¬ÀýÈ磺
mysql> SHOW VARIABLES LIKE '%partition%';
+-----------------------+-------+
| Variable_name | Value |
+-----------------------+-------+
| have_partition_engine | YES |
+-----------------------+-------+
1 row in set (0.00 sec)
ÔÚÈçÉÏÁгöµÄÒ»¸öÕýÈ·µÄSHOW VARIABLES ÃüÁîËù²úÉúµÄÊä³öÖУ¬Èç¹ûûÓп´µ½±äÁ¿have_partition_engineµÄֵΪYES£¬ÄÇôMySQLµÄ°æ±¾¾Í²»Ö§³Ö·ÖÇø¡££¨×¢Ò⣺ÔÚÏÔʾÈκÎÓйطÖÇøÖ§³ÖÐÅÏ¢µÄÃüÁîSHOW ENGINESµÄÊä³öÖУ¬²»»á¸ø³öÈκÎÐÅÏ¢£»±ØÐëʹÓÃSHOW VARIABLESÃüÁîÀ´×ö³öÕâ¸öÅжϣ©¡£
¶ÔÓÚ´´½¨ÁË·ÖÇøµÄ±í£¬¿ÉÒÔʹÓÃÄãµÄMySQL ·þÎñÆ
Ïà¹ØÎĵµ£º
MySQL Workbench ÊÇ MySQL ×î½üÊͷŵĿÉÊÓÊý¾Ý¿âÉè¼Æ¹¤¾ß¡£Õâ¸ö¹¤¾ßÊÇÉè¼Æ MySQL Êý¾Ý¿âµÄרÓù¤¾ß¡£
ÄãÔÚ MySQL Workbench Öн¨Á¢µÄ±»³Æ֮ΪÎïÀíÊý¾ÝÄ£ÐÍ¡£Ò»¸öÎïÀíÊý¾ÝÄ£ÐÍÊÇÕë¶ÔÒ»¸öÌض¨ RDBMS ²úÆ·µÄÊý¾ÝÄ£ÐÍ£»±¾ÎÄÖеÄÄ£Ðͽ«¾ßÓÐһЩ MySQL µÄ¶ÀÌع淶¡£ÎÒÃÇ¿ÉÒÔʹÓÃËüÉú³É£¨forward-engineer£©Êý¾Ý¿â¶ÔÏ󣬳ýÁË°üº¬± ......
¹Ø¼ü×Ö: mysql6 mysql6ÏÂÔØ
×÷ΪһÃû¿ª·¢ÈËÔ±,ÎÒ¶ÔÂÌɫСÈí¼þÇéÓжÀÖÓ,ÒòΪÓÃÆðÀ´·½±ã¿ì½ÝÂï,±ãÓÚЯ´ø,Ò×ÓÚÔÚÑÝʾϵͳÖÐʹÓÃ,¿ª·¢Ê±¿ÉÁ¢¼´½øÈë״̬. £¨ÔÚ¸½¼þÖУ©
ÒÔÏÂÊÇÏêϸ˵Ã÷:
MySQL 6 ÂÌÉ«¾«¼ò°æ(BAT°æ±¾)
MySQL 6 Ö§³ÖÍâ¼ü,ÊÓͼ´æ´¢¹ý³Ì,ÊÂÎñµÈ¹¦ÄÜ(ÂÌÉ«¾« ......
ÕâÁ½ÌìÎÒ×°ÁËUBUNTU £¬ÔÚ±àÒë°²×°MYSQLµÄʱºòûÓгöʲôÎÊÌ⣬
µ½scripts/mysql_install_db --user=mysql
ÕâÒ»²½Ê±£¬µÃµ½ÈçÏ´íÎó
FATAL ERROR: Can't find mysqld. Please specify your installation
directory with the '--basedir=' option.
FATAL ERROR: Could not find SQL file '/fill_help_tables.sql'
µ½ÍøÉ ......
Ö®ËùÒÔдÕâƪ²©¿Í£¬ÊÇÒòΪǰ¼¸Ìì²ÅÅöµ½ÁËÕâôһ¸öÎÊÌ⣬ÒÔÇ°»¹²»ÖªµÀmysqlÓÐÕâôһ¸öÎÊÌâ¡£
ÎÒÃǵÄϵͳʹÓÃÁËstruts+hibernate£¬Êý¾Ý¿âʹÓõÄÊÇmysql£¬×Ö·û¼¯Í³Ò»Îªutf-8¡£
±¾À´ÒѾÍê³ÉÁË£¬µ«ÊÇϵͳʹÓõÄʱºò£¬·¢ÏÖ²é³öÀ´µÄÈËÃûûÓÐ˳Ðò£¬±¾À´ÒÔΪºÜ¼òµ¥£¬ÔÚ²éѯµÄʱºò£¬Ö¸¶¨°´ÕÕnameÅÅÐò¾Í¿ÉÒÔÁË£¬Æñ֪ʵ¼ÊÒ»×ö²Å·¢Ï ......
Êý¾Ý¿â²Ù×÷ÀࣺDBCommon.class.php
//---------------------------------------------------------------------
// MySQL Master/SlaveÊý¾Ý¿â¶Áд²Ù×÷Àà
//
// ¿ª·¢×÷Õß: heiyeluren
// °æ±¾ÀúÊ·:
// 2006-09-20 »ù±¾µ¥Êý¾Ý¿â²Ù×÷¹¦ÄÜ, 25 ¸ö½Ó¿Ú
// 2007-07-30 Ö§³Öµ ......