PHP»·¾³ IIS+PHP+MYSQL»·¾³µÄ¼ÜÉè
ºÜ¾ÃûÓÐЩһЩÓÐÓô¦µÄµÄ¶«Î÷ÁË£¡½ñÌì¾Í²»ºúÂÒµÄ䶫Î÷ÁË!дһЩÓÐÓõģ¡µ±È»Ç°ÌáÏÂÊǺܸÐлºÜ¶à¾³£À´ÎÒ²©¿ÍµÄÅóÓÑһϣ¡¶àл´ó¼Ò£¡£¡£¡£¡£¡
½ñÌìдµÄÊǹØÓÚphp»·¾³¼ÜÉèµÄµÚÒ»ÖÖ·½Ê½£¡µ±È»ÎҾͲ»½ØͼÁË£¡´ó¼ÒÖ»Òª°´ÕÕ²Ù×÷¾Í¿ÉÒÔʵÏֵģ¡
Ò»¡¢°²×° PHP £º±¾ÎÄPHP°²×°Â·¾¶È¡ÎªD:\php\php4\(Ϊ±Ü»ìÏý£¬PHP5.1.x°æ±¾°²×°Â·¾¶È¡Îª
D:\php\php5\)
£¨1£©¡¢ÏÂÔغóµÃµ½ php-4.4.0-Win32.zip £¬½âѹÖÁD:\phpĿ¼£¬½«µÃµ½¶þ¼¶Ä¿Â¼php-4.4.0-Win32£¬¸ÄÃû
Ϊ php4£¬
Ò²¼´µÃµ½PHPÎļþ´æ·ÅĿ¼D:\php\php4\
[Èç¹ûÊÇPHP5.1.2£¬µÃµ½µÄÎļþÊÇphp-5.1.2-Win32.zip£¬Ö±½ÓÈ«²¿½ÓѹÖÁD:\php\php5Ŀ¼¼´¿ÉµÃPHPÎÄ
¼þ´æ·ÅĿ¼D:\php\php5\]£»
£¨2£©¡¢ÔÙ½«D:\php\php4Ŀ¼ºÍD:\php\php4\dllsĿ¼
[PHP5ΪD:\php\php5\]ϵÄËùÓÐdllÎļþ copy µ½ c:\Windows\system32 (win2000ϵͳΪ
c:/winnt/system32/)Ï£¬¸²¸ÇÒÑÓеÄdllÎļþ£»
£¨3£©¡¢½«php.ini-distÓüÇʱ¾´ò¿ª£¬ÀûÓüÇʱ¾µÄ²éÕÒ¹¦ÄÜËÑË÷²¢Ð޸ģº
ËÑË÷ register_globals = Off
½« Off ¸Ä³É On £¬¼´µÃµ½ register_globals = On
×¢£ºÕâ¸ö¶ÔÓ¦PHPµÄÈ«¾Ö±äÁ¿¹¦ÄÜ£¬¿¼ÂÇÓкܶàPHP³ÌÐòÐèҪȫ¾Ö±äÁ¿¹¦Äܹʴò¿ª£¬´ò¿ªºóÇë×¢Òâ-PHP³ÌÐòµÄÑÏ
½÷ÐÔ£¬Èç¹û²»ÐèÒªÍƼö²»Ð޸ı£³ÖĬÈÏOff״̬
ËÑË÷ extension_dir =
Õâ¸öÊÇPHPÀ©Õ¹¹¦ÄÜĿ¼ ²¢½«Æä·¾¶Ö¸µ½ÄãµÄ PHP Ŀ¼Ï嵀 extensions Ŀ¼£¬±ÈÈ磺
ÐÞ¸Ä extension_dir = "./" Ϊ extension_dir = "D:/php/php4/extensions/"
[PHP5¶ÔÓ¦ÐÞ¸ÄΪ extension_dir = "D:/php/php5/ext/" ]
ÔÚD:\php Ͻ¨Á¢Îļþ¼Ð²¢ÃüÃûΪ tmp
²éÕÒ upload_tmp_dir =
½« ;upload_tmp_dir ¸ÃÐеÄ×¢ÊÍ·û£¬¼´Ç°ÃæµÄ·ÖºÅ" £»”È¥µô£¬
ʹ¸ÃÐÐÔÚphp.iniÎĵµÖÐÆð×÷Óá£upload_tmp_dirÊÇÓÃÀ´¶¨ÒåÉÏ´«Îļþ´æ·ÅµÄÁÙʱ·¾¶£¬ÔÚÕâÀïÄ㻹¿ÉÒÔÐ޸IJ¢
¸øÆ䶨ÒåÒ»¸ö¾ø¶Ô·¾¶£¬ÕâÀïÉèÖõÄĿ¼±ØÐëÓжÁдȨÏÞ¡£
ÕâÀïÎÒÉèÖÃΪ upload_tmp_dir = D:/php/tmp (¼´Ç°Ã潨Á¢µÄÕâ¸öÎļþ¼ÐºÇ)
ËÑË÷ ; Windows Extensions
½«ÏÂÃæһЩ³£ÓõÄÏîÇ°ÃæµÄ ; È¥µô ,ºìÉ«µÄ±ØÐ룬À¶É«µÄ¹©Ñ¡Ôñ
;extension=php_mbstring.dll
Õâ¸ö±ØÐëÒª
;extension=php_curl.dll
;extension=php_dbase.dll
;extension=php_gd2.dll
Õâ¸öÊÇÓÃÀ´Ö§³ÖGD¿âµÄ£¬Ò»°ãÐèÒª£¬±ØÑ¡
;extension=php_ldap.dll
;extension=php_zip.dll
¶ÔÓÚPHP5µÄ°æ±¾»¹ÐèÒª²éÕÒ
;extension=php_mysql.dll
²¢Í¬ÑùÈ¥µôÇ°
Ïà¹ØÎĵµ£º
DOS¡¡´°¿Ú
¿ªÊ¼££¾ÔËÐУ£¾¡¡cmd
µ¼³öΪ£º¡¡mysqldump -u Óû§Ãû -p --opt Êý¾Ý¿âÓû§Ãû >
Êý¾Ý¿âÃû.sql
ÊäÈëÄãµÄÊý¾Ý¿âÃÜÂë!phpma.com
µ¼ÈëΪ£ºmysql -u Óû§Ãû -p Êý¾Ý¿âÓû§Ãû < Êý¾Ý¿âÃû.sql
£¨Òª
ÔÚµ±Ç°Ä¿Â¼Ï²Ù×÷£©
ÒªÏ뽫Îı¾Îļþ
“
pet.txt
”
×°Ôص½
pet
±íÖУ¬Ê¹Ó ......
http://www.xiaojb.com/archives/it/mysqlroot.shtml
Method 1:
ÔÚ/usr/local/mysql/bin/Ï£º
./mysqladmin -u root password ‘new_password’
Ò»°ã°²×°Ê±Óô˷½·¨ÉèÖá£
Method 2:
ÔÚmysql״̬Ï£º
mysql>UPDATE user SET password=PASSWORD(’new_password’) WHERE user=’root&rsq ......
1¡¢MySQL³£ÓÃÃüÁî
create database name; ´´½¨Êý¾Ý¿â
use databasename; Ñ¡ÔñÊý¾Ý¿â
drop database name Ö±½Óɾ³ýÊý¾Ý¿â£¬²»ÌáÐÑ
show tables; ÏÔʾ±í
describe tablename; ±íµÄÏêϸÃèÊö
select ÖмÓÉÏdistinctÈ¥³ýÖظ´×Ö¶Î
mysqladmin drop databasename ɾ³ýÊý¾Ý¿âÇ°£¬ÓÐÌáʾ¡£
ÏÔʾµ±Ç°mysql°æ±¾ºÍµ±Ç°ÈÕÆÚ
s ......
apacheµÄÔ´Âë°²×°
½«Ñ¹Ëõ°ü½âѹ֮ºó½øÈëÏàÓ¦µÄĿ¼
./configure \ #--------------------Ô¤±àÒëÃüÁî
"--prefix=/usr/local/apache" \ #--------------------°²×°Â·¾¶Îª“/usr/local/apache”
"--with-included-apr" \
"--enable-so" \ #--------------------¿ªÆôÏàÓ¦µÄÀ©Õ¹Ä£¿é ......
½üÀ´ÓÉÓÚ¹¤×÷µÄÐèÒª£¬¿ªÊ¼Ñ§Ï°Ê¹ÓÃPHP¡£
´Ó×òÌìÏÂÎçµ½½ñÌìÉÏÎ磬ÖÕÓÚ°Ñ¿ª·¢»·¾³´î½¨Íê±Ï¡£×ܵÄÀ´Ëµ£º³õ²½µÄÈÏʶÊÇ£ºPHPÔÚÍøÕ¾¿ª·¢ÉÏ£¬¹¦ÄÜ»¹ÊǺÜÇ¿´óµÄ¡£½ñÌìÏÂÎç³õ²½µÄ°ÑÓ﷨ʲôµÄÊìϤһÏ¡£ÒòΪ×ö¿ª·¢Õâô¶àÄêÁË£¬ºÜ¶àÓïÑÔ£¬»¹ÊÇÓеãÏàͬµÄ£¬ËùÒÔ£¬Ñ§Ï°ÆðÀ´²»ÊǺܷѾ¢¡£ºóÌì»ØÀϼң¬Ï£ÍûÄêºóÄÜÔÚPHPÉÏÓÐËùÌá¸ß¡£
Ò»¡¢± ......