MySQL´æ´¢ÒýÇæ
MySQLÓжàÖÖ´æ´¢ÒýÇ棺
MyISAM¡¢InnoDB¡¢MERGE¡¢MEMORY(HEAP)¡¢BDB(BerkeleyDB)¡¢EXAMPLE¡¢FEDERATED¡¢ARCHIVE¡¢CSV¡¢BLACKHOLE¡£
MySQLÖ§³ÖÊý¸ö´æ´¢ÒýÇæ×÷Ϊ¶Ô²»Í¬±íµÄÀàÐ͵Ĵ¦ÀíÆ÷¡£MySQL´æ´¢ÒýÇæ°üÀ¨´¦ÀíÊÂÎñ°²È«±íµÄÒýÇæºÍ´¦Àí·ÇÊÂÎñ°²È«±íµÄÒýÇ棺
¡ô MyISAM¹ÜÀí·ÇÊÂÎñ±í¡£ËüÌṩ¸ßËÙ´æ´¢ºÍ¼ìË÷£¬ÒÔ¼°È«ÎÄËÑË÷ÄÜÁ¦¡£MyISAMÔÚËùÓÐMySQLÅäÖÃÀï±»Ö§³Ö£¬ËüÊÇĬÈϵĴ洢ÒýÇ棬³ý·ÇÄãÅäÖÃMySQLĬÈÏʹÓÃÁíÍâÒ»¸öÒýÇæ¡£
¡ô MEMORY´æ´¢ÒýÇæÌṩ“ÄÚ´æÖД±í¡£MERGE´æ´¢ÒýÇæÔÊÐí¼¯ºÏ½«±»´¦ÀíͬÑùµÄMyISAM±í×÷Ϊһ¸öµ¥¶ÀµÄ±í¡£¾ÍÏñMyISAMÒ»Ñù£¬MEMORYºÍMERGE´æ´¢ÒýÇæ´¦Àí·ÇÊÂÎñ±í£¬ÕâÁ½¸öÒýÇæÒ²¶¼±»Ä¬ÈÏ°üº¬ÔÚMySQLÖС£
×¢ÊÍ£ºMEMORY´æ´¢ÒýÇæÕýʽµØ±»È·¶¨ÎªHEAPÒýÇæ¡£
¡ô InnoDBºÍBDB´æ´¢ÒýÇæÌṩÊÂÎñ°²È«±í¡£BDB±»°üº¬ÔÚΪ֧³ÖËüµÄ²Ù×÷ϵͳ·¢²¼µÄMySQL-Max¶þ½øÖÆ·Ö·¢°æÀï¡£InnoDBҲĬÈϱ»°üÀ¨ÔÚËù ÓÐMySQL 5.1¶þ½øÖÆ·Ö·¢°æÀÄã¿ÉÒÔ°´ÕÕϲºÃͨ¹ýÅäÖÃMySQLÀ´ÔÊÐí»ò½ûÖ¹ÈÎÒ»ÒýÇæ¡£
¡ô EXAMPLE´æ´¢ÒýÇæÊÇÒ»¸ö“´æ¸ù”ÒýÇ棬Ëü²»×öʲô¡£Äã¿ÉÒÔÓÃÕâ¸öÒýÇæ´´½¨±í£¬µ«Ã»ÓÐÊý¾Ý±»´æ´¢ÓÚÆäÖлò´ÓÆäÖмìË÷¡£Õâ¸öÒýÇæµÄÄ¿µÄÊÇ·þÎñ£¬ÔÚ MySQLÔ´´úÂëÖеÄÒ»¸öÀý×Ó£¬ËüÑÝʾ˵Ã÷ÈçºÎ¿ªÊ¼±àдд洢ÒýÇ档ͬÑù£¬ËüµÄÖ÷ÒªÐËȤÊǶԿª·¢Õß¡£
¡ô NDB ClusterÊDZ»MySQL ClusterÓÃÀ´ÊµÏַָ¶ą̀¼ÆËã»úÉϵıíµÄ´æ´¢ÒýÇæ¡£ËüÔÚMySQL-Max 5.1¶þ½øÖÆ·Ö·¢°æÀïÌṩ¡£Õâ¸ö´æ´¢ÒýÇ浱ǰֻ±»Linux, Solaris, ºÍMac OS X Ö§³Ö¡£ÔÚδÀ´µÄMySQL·Ö·¢°æÖУ¬ÎÒÃÇÏëÒªÌí¼ÓÆäËüƽ̨¶ÔÕâ¸öÒýÇæµÄÖ§³Ö£¬°üÀ¨Windows¡£
¡ô ARCHIVE´æ´¢ÒýÇæ±»ÓÃÀ´ÎÞË÷ÒýµØ£¬·Ç³£Ð¡µØ¸²¸Ç´æ´¢µÄ´óÁ¿Êý¾Ý¡£
¡ô CSV´æ´¢ÒýÇæ°ÑÊý¾ÝÒÔ¶ººÅ·Ö¸ôµÄ¸ñʽ´æ´¢ÔÚÎı¾ÎļþÖС£
¡ô BLACKHOLE´æ´¢ÒýÇæ½ÓÊܵ«²»´æ´¢Êý¾Ý£¬²¢ÇÒ¼ìË÷×ÜÊÇ·µ»ØÒ»¸ö¿Õ¼¯¡£
¡ô FEDERATED´æ´¢ÒýÇæ°ÑÊý¾Ý´æÔÚÔ¶³ÌÊý¾Ý¿âÖС£ÔÚMySQL 5.1ÖУ¬ËüÖ»ºÍMySQLÒ»Æð¹¤×÷£¬Ê¹ÓÃMySQL C Client API¡£ÔÚδÀ´µÄ·Ö·¢°æÖУ¬ÎÒÃÇÏëÒªÈÃËüʹÓÃÆäËüÇý¶¯Æ÷»ò¿Í»§¶ËÁ¬½Ó·½·¨Á¬½Óµ½ÁíÍâµÄÊý¾ÝÔ´¡£
µ±Äã´´½¨Ò»¸öбíµÄʱºò£¬Äã¿ÉÒÔͨ¹ýÌí¼ÓÒ»¸öENGINE »òTYPE Ñ¡Ïîµ½CREATE TABLEÓï¾äÀ´¸æËßMySQLÄãÒª´´½¨Ê²Ã´ÀàÐÍµÄ±í£º
CREATE TABLE t (i INT) ENGINE = INNODB;
CREATE TABLE t (i INT) TYPE = MEMORY;
ËäÈ»TYPEÈÔÈ»ÔÚMySQL 5.1Öб»Ö§³Ö£¬ÏÖÔÚENGINEÊÇÊ×Ñ¡µÄÊõÓï¡£
ÈçºÎÑ¡Ôñ×îÊʺÏÄãµÄ´æ´¢ÒýÇæÄØ£¿
ÏÂÊö´æ´¢ÒýÇæÊÇ×î³£Óõģº
¡ô MyISAM£ºÄ
Ïà¹ØÎĵµ£º
1¡¢mysql_connect()-½¨Á¢Êý¾Ý¿âÁ¬½Ó
¸ñʽ£º
resource mysql_connect([string hostname [:port] [:/path/to/socket] [, string username] [, string password]])
Àý£º
$conn = @mysql_connect(”localhost”, “username”, “password”) or dir(”²»ÄÜÁ¬½Óµ½Mysql Server” ......
S- servÌáȨ·½Ê½ÈËÈ˶¼»áÓÃÁË£¬¸ãµÃÏÖÔÚµÄÖ÷»ú¶¼ÅäÖõ÷dz£°²È«£¬¿´À´¹¥»÷ÊÖ·¨µÄ²ã³ö²»ÇîÒ²ÊÇÔì³ÉÖйúÍøÂ簲ȫ½ø²½µÄÒ»´óÔÒòÖ®Ò»£¬»¹ÓÐÆäËûµÄ pcanywhere»ñÈ¡ÃÜÂ룬Ìæ»»·þÎñ£¬µÈµÈ¡£µ«ÊÇÏÖÔÚҲûÕâôºÃ¸ãÁË£¬Ëæ×Å°²È«ÒâʶµÄÌá¸ß£¬Ö®Ç°µÄ·½Ê½¹À¼Æ²»Ôõô¹ÜÓã¬ÏÖÔÚÎÒ¸ø´ó¼Ò½éÉÜÒ»ÏÂÒ»ÖÖеÄÌáȨ·½Ê½£¬¿´¹ý¹ÅµäLM×öµÄÄǶ¯»µÄ ......
Æô¶¯mysqlµÄ·þÎñ¾³£·¢ÏÖ1067Õâ¸ö´íÎ󡣲鿴ʼþÈÕÖ¾ÒÔºó·¢ÏÖÏÂÃæµÄ´íÎóÐÅÏ¢
Unknown/unsupported table type: INNODB
ÈçºÎ½â¾ö£ºÔÚmysqlÊý¾Ý´æ·ÅĿ¼ÏÂÕÒµ½ ibdata ÒÔ¼°ib_logfile0¡¢ib_logfile1ɾµôÔÙÆô¶¯¾ÍºÃÁË ......
ת×Ôhttp://www.linuxbyte.org/yi-ge-mysql-server-shang-de-xiao-ji-qiao.html
ÔÚmy.cnf µÄ mysql ¶Ë Ìí¼ÓÈçÏÂÉèÖÃ
[mysql]
#no-auto-rehash # faster start of mysql but no tab completition
prompt="(\u:mysql1@linuxbyte.org \R:\m)[\d]: "
»á²úÉúÈçÏÂЧ¹û:
root@ubuntu:/home/hew# mysql -u hew -p
Enter pass ......