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

PHPÍæתMySQLÖ®Íâ¼üÔ¼Êø ÄÏÈý·½

ÔÚ±¾ÎÄÖУ¬ÎÒÃǽ«Ñ§Ï°ÈçºÎͨ¹ýPHP 5µÄÒ»¸ö»ù±¾³éÏóÀàʹÓÃÍâ¼üÔ¼ÊøÀ´¸üÐÂÁ½¸öInnoDB±íµÄÊý¾Ý¡£ ÎÒÃǽ«Í¨¹ý¾ßÌåʾÀýÀ´ËµÃ÷ÈçºÎͨ¹ý·þÎñÆ÷¶Ë½Å±¾ÓïÑÔÀ´Ê¹ÓÃÍâ¼üÔ¼Êø¡£
¡¡¡¡Ò»¡¢ÀûÓÃÍâ¼üÔ¼Êø¸üÐÂMySQLÖеÄÊý¾Ý
¡¡¡¡ÏÖÔÚ£¬×îÁ÷ÐеĿªÔ´¹ØϵÐÍÊý¾Ý¿â¹ÜÀíϵͳ·ÇMySQLĪÊô£¬¶øMySQLÓÖÖ§³Ö¶à¸ö´æ´¢ÒýÇ棬ÆäÖÐĬÈϵÄÒ²ÊÇËٶȽϿìµÄ´æ´¢ÒýÇæΪMyISAM£¬¶ÔÐí¶à¶ÁÕßÀ´Ëµ£¬ÔÚ¿ª·¢×Ô¼ºÊý¾Ý¿âÇý¶¯µÄwebÓ¦ÓóÌÐò֮ǰ£¬¿ÉÄÜÒѾ­Ê¹ÓÃÁËËüºÜ³¤Ò»¶Îʱ¼äÁË¡£
¡¡¡¡È»¶ø£¬ÓÐʱºòÎÒÃǵÄÏîÄ¿¿ÉÄÜÐèÒª¶îÍâµÄÌØÐÔ£¬ÀýÈçÐèÒª´¦ÀíÍâ¼üÔ¼Êø£¬ÕâʱÎÒÃǾÍÐèÒªÓõ½ÆäËüÀàÐ͵ÄMySQL´æ´¢ÒýÇæ¡£ÔÚÕâÖÖÇé¿öÏ£¬InnoDB±í½«·Ç³£ÊʺÏÎÒÃǵÄÒªÇ󣬾¡¹ÜÔÚÐÔÄÜ·½Ãæ¿ÉÄܱÈMyISAM±íÒªÉÔÑ·Ò»³ï¡£´ó¼ÒÖªµÀ£¬Ê¹ÓÃInnoDB±íÍâ¼üÔ¼ÊøÖ÷ÒªÓŵãÖ®Ò»¾ÍÊÇ£¬ËüʹÎÒÃÇ¿ÉÒÔÔÚÊý¾Ý¿â¼¶±ð´¦ÀíºÍά»¤¶à¸ö±íÖ®¼äµÄ¹Øϵ£¬¶øÎÞÐ轫´ËÈÎÎñÍƸøÓëÕâЩ±í´ò½»µÀµÄÓ¦ÓóÌÐòµÄijЩģ¿é»òÕß³ÌÐò¿â¡£
¡¡¡¡µ±È»£¬Ç°ÃæµÄ¼¸ÆªÎÄÕÂÖУ¬ÎÒÃÇÒѾ­¾ÍIndoDB±íµÄÍâ¼üÔ¼Êø×ö¹ýÏàÓ¦½éÉÜ£¬µ«ÊÇÄÇÀﶼÊÇͨ¹ýÊÖ¹¤·½Ê½À´²Ù×÷Íâ¼üÔ¼ÊøµÄ¡£ÔÚ±¾ÎÄÖУ¬ÎÒÃǽ«ËµÃ÷ÈçºÎÔÚ¸üкÍɾ³ý¸¸±íÖеÄÊý¾Ýʱ£¬ÈçºÎͨ¹ý½Å±¾ÓïÑÔÀ´´¥·¢ÏàÓ¦×Ó±íµÄ¼¶Áª¸üкÍɾ³ý²Ù×÷¡£
¡¡¡¡ÕâÀÎÒÃDz©¿ÍÓ¦ÓóÌÐòµÄÊý¾Ý²ãÓÉÁ½¸ö±í¹¹³É£¬ÔÚÇ°ÃæµÄʾÀýÖУ¬¶ÔÕâЩ±íµÄ²Ù×÷£¬¶¼ÊÇͨ¹ýÊÖ¹¤¼üÈëSQLÃüÁîÍê³ÉµÄ£¬ÏÖÔÚ£¬ÎÒÃǽ«½éÉÜÈçºÎʹÓÃPHP³ÌÐòÉè¼ÆÓïÑÔÀ´Íê³ÉÕâЩ¹¤×÷¡£Ö®ËùÒÔÑ¡ÔñPHP£¬ÊÇÒòΪËüÄ¿Ç°MySQL×î³£¼ûµÄ´îÅäÓïÑÔ£¬ÏÂÃæÎÒÃÇÒÔPHP 5ΪÀýÀ´ËµÃ÷ÈçºÎÍâ¼üÔ¼Êø²Ù×÷Á½¸öInnoDB±í¡£ ͨ¹ýÔĶÁ±¾ÎÄ£¬Äú½«¸ü¼ÓÕæÇеØÌå»áµ½Íâ¼üÔ¼ÊøµÄÌØÐÔ¡£
¡¡¡¡ÏÖÔÚ£¬ÎÒÃÇ¿ªÊ¼¼ûÖ¤PHP 5ºÍÍâ¼üÔ¼Êø½áºÏÔÚÒ»ÆðËù´øÀ´µÄÍþÁ¦°É!
¡¡¡¡¶þ¡¢ÒÔ¼¶Áª·½Ê½¸üкÍɾ³ýÊý¾Ý¿âÖеÄÊý¾Ý
¡¡¡¡¹ÅÈËÔÆ£¬Î¹ʶø֪У¬ÄÇôÏÈÈÃÎÒÃÇÀ´»Ø¹ËÒ»ÏÂÇ°Ãæѧ¹ýµÄÄÚÈÝ°É¡£Ö®Ç°£¬ÎÒÃǽéÉܹýÈçºÎÔËÓÃÍâ¼üÔ¼Êø¼¶Áª¸üкÍɾ³ý´æ·Å²©¿ÍÎÄÕÂÆÀÂÛµÄInnoDB±íÖеÄÊý¾Ý¡£Èç¹ûÄúÉÐδÔĶÁÇ°ÃæµÄÎÄÕÂÒ²²»Òª½ô£¬ÏÂÃæÎÒÃǼòµ¥»Ø¹ËÕâЩÄÚÈÝ¡£
¡¡¡¡ÕâÀïÊÇÎÒÃǵÄʾÀýÖÐÓõ½µÄÁ½¸ö±íµÄ¶¨Ò壬ÈçÏÂËùʾ£º
Code highlighting produced by Actipro CodeHighlighter (freeware)
DROP TABLE IF EXISTS `test`.`blogs`;
CREATE TABLE `test`.`blogs` (
`id` INT(10) UNSIGNED AUTO_INCREMENT,
`title` TEXT,
`content` TEXT,
`author` VARCHAR(45) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
 
DROP TABLE


Ïà¹ØÎĵµ£º

ʹÓÃÓαêʵÏÖ mysql ´æ´¢¹ý³ÌÖеÄÑ­»·

create   procedure   all_joiner_message(   in   captions   varchar(255),  in contents text,   in objectid int, in types int  ,  out count int)
begin
 declare   userids   int;
 DECLARE _done IN ......

mysql,sqlserver,oracleÈýÖÖÊý¾Ý¿âµÄ´ó¶ÔÏó´æÈ¡


mysql ´ó¶ÔÏó´æÈ¡:
ÀàÐÍÒ»°ãÓ¦¸ÃÓÃmediumblod,
blobÖ»ÄÜ´æ2µÄ16´Î·½¸öbyte,
mediumblodÊÇ24´Î·½,
Ò»°ãÀ´Ëµ¹»ÓÃÁË.longblobÊÇ32´Î·½ÓÐЩ´ó.
MYSQLĬÈÏÅäÖÃÖ»ÄÜ´æ1M´óСµÄÎļþ,ÒªÐÞ¸ÄÅäÖÃ,WIN°æ±¾µÄÔÚmysql.iniÎļþÖÐ
ÐÞ¸Ämax_allowed_packet,net_buffer_lengthµÈ¼¸¸ö²ÎÊý,»òÖ±½ÓSET GLOBAL varName=value.
linux°æ± ......

CentOS5 Ï°²×°Apache2+PHP5+MySQL

°²×°apache
# tar -zvxf httpd-2.2.14.tar.gz
# cd httpd-2.2.14
# ./configure --prefix=/usr/local/apache2 --enable-so --enable-rewrite
# make
# make install
°²×°MySQL
#yum -y install mysql-server
#yum -y install mysql-devel
°²×° jpeg7
½¨Á¢Ä¿Â¼£º
# mkdir -p /usr/local/jpeg7
# mkdir -p /usr/l ......

PHP¼ÆËãÖ¸¶¨ÈÕÆÚËùÔÚÖܵĿªÊ¼ºÍ½áÊøÈÕÆÚ

<html>
<head>
<title>¼ÆËã±¾ÖÜ¿ªÊ¼½áÊøÈÕÆÚ</title>
</head>
<body>
<form method="post" action="./index.html" enctype="utf-8">
<table>
<tr><td>ÊäÈëÄê·Ý</td><td><input name="year" type="text" maxlength="4" /></td> ......

MysqlͨÓòéѯ²Ù×÷Àà(Jsp+servlet+javaBean+Mysql)

ÔÚÌÚ¿ÆÅàѵÁËÓÐ1¸ö°ëÔÂÁË£¬ÖÕÓÚѧÍêJSP+SERVLET+JAVABEAN+MYSQL£¬Ñ§ÁËjavaµÄµÚÒ»Ì×web½â¾ö·½°¸¡£ÀÏʦҪÇóÎÒÃÇ6ÈËÒ»×鿪ʼ×öÒ»¸ö¶©²Íϵͳ¡£Õâ¸öϵͳûÓÐʲôÌرðµÄ£¬¾Í¸úµç×ÓÉ̳ÇÊÇÒ»¸öÑùµÄ¡£ÓÉÓÚÒª¶ÔÊý¾Ý¿â×ö´óÁ¿µÄÔöɾ¸Ä²é£¬ÄǸö´úÂëÓֶ࣬ÎÒÏëÄܲ»Äܽ«Êý¾Ý¿â²Ù×÷µÄÕâÒ»²ã´ò°üÆðÀ´(SqlOperDao)£¬ÈÃÎÒ¶ÔÊý¾Ý¿â²Ù×÷£¬Óü¸Ðд ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ