apache mysql php°²×°
1.apacheµÄ°²×°
apache±¾À´ÊÇÏëÓñàÒë°²×°µÄ£¬µ«ÊÇÆädevelÐèÒªÒÀÀµÒ»Ð©ÆäËûµÄ°ü£¬°²×°ÆðÀ´Ì«Âé·³£¬ËùÒÔ¾ö¶¨Ê¹Óñ¾µØyumÔ´°²×°£»ÔÚrhel5u3ÉÏ£¬Ö±½Ó yum install httpd
yum install httpd-devel
ÕâÑù»áÓÐhttpd-develµÄһЩÒÀÀµ°üÒ»²¢°²×°ÁË£»
rpm°²×°µÄhttpdÓÐÈçϼ¸¸öÖØÒªµÄĿ¼£º
1)/etc/httpd
httpdµÄÅäÖÃÖ÷Ŀ¼£º
/etc/httpd/conf/httpd.confÊÇÆäÖ÷ÅäÖÃÎļþ£»
/etc/httpd/logsÊÇÒ»¸öÈíÁ¬½Ó£¬Á¬½ÓĿ¼Ϊ£º/var/log/httpdÕâ¸öĿ¼ÓÐapacheµÄ·ÃÎÊÈÕÖ¾£¬Òì³£´íÎóÈÕÖ¾µÈ£»
/etc/httpd/modulesÒ²ÊÇÒ»¸öÈíÁ¬½Ó£¬Á¬½ÓĿ¼Ϊ£º/usr/lib/httpd/modules£¬Õâ¸öÊÇһЩapache module´æ·ÅĿ¼;
/etc/httpd/conf.d/Õâ¸öĿ¼ÏµÄËùÓÐ.confÎļþ¶¼»á×÷ΪapacheµÄÀ©Õ¹ÅäÖÃÎļþ¼ÓÔØ£»
2)/usr/share/doc/httpd-2.2.3/
Õâ¸öĿ¼ÊÇhttpdµÄһЩ°ïÖúÎĵµËùÔÚµØ
3)/etc/rc.d/init.d/httpd
¿ÉÒÔʹÓÃservice httpd start/stop/status/restartµÈ¹ÜÀíhttpd·þÎñ£»
4)/var/www/html
Õâ¸öÊÇDocumentRootĿ¼£»
2.mysqlµÄ°²×°
Èç¹ûÒªÊÇ°²×°php mysqlÒ»°ãÐèÒª°²×°ÈçÏÂ3¸örpm°ü£º
MySQL-server-community-5.1.45-1.rhel5.i386.rpm£¬MySQL-client-community-5.1.45-1.rhel5.i386.rpm£¬MySQL-devel-community-5.1.45-1.rhel5.i386.rpm£»
¾ßÌåµÄϸ½Ú:¿ÉÒԲο¼http://hi.baidu.com/shywyz/blog/item/ea6b3cdda70e5ad88c1029e3.htmlÕâƪÎÄÕ£»
²»¹ýÓÐÁ½µãÐèҪ˵Ã÷£º
rpm °²×°ºóµÄmysqlûÓÐmy.cnfÎļþ£¬Æô¶¯µÄʱºò²ÉÓõÄÊÇmysqlµÄĬÈÏÉèÖã¬ÐèÒªµ½/usr/share/mysqlÖп½±´Ò»¸ömy-small.cnf »òÕßmy-medium.cnfµÈÕâÑùµÄÒ»¸öÑùÀýµ½/etc»òÕß/var/lib/mysqlÏ£¬ÕâÑùÖØÐÂÆô¶¯mysql¾ÍÉúЧÁË¡£
ÁíÍ⣬ÔÚ²âÊÔϵͳÖпÉÒÔÔÊÐírootÓû§Ô¶³ÌÁ¬½Ó£¬ÕâÑù¿ÉÒÔÖ´ÐÐ/usr/bin/mysql_secure_installationÐÞ¸ÄrootÓû§µÄÃÜÂ룻
ÐÞ¸Ä/etc/mysql/my.cnfÎļþ£º×¢ÊÍÕâÒ»ÐУº
bind-address=127.0.0.1 ==> #bind-address=127.0.0.1
¶ÔÓÚÐèÒªÔ¶³ÌµÇ¼µÄÓû§Ö´ÐÐÈçÏÂÃüÁ
mysql> GRANT ALL PRIVILEGES ON *.* TO root@"%" IDENTIFIED BY "yourpasswd";
mysql> flush privileges;ÕâÑù¾Í¿ÉÒÔʹÓÃrootÔ¶³ÌµÇ¼ÁË£»
3. php5.2.13±àÒë°²×°¹ý³Ì
php°²×°À©Õ¹Ê±Ê×ÏÈÐèҪһЩÒÀÀµ°ü£¬ÀýÈçhttpd-devel libxml-devel mysql-devel libpngµÈµÈ£¬ÕâЩÐèÒªÔÚ±àÒë°²×°Ç°£¬¶¼ÏÈ×¼±¸ºÃ£»Èç¹ûÔÚ°²×°µÄ¹ý³ÌÖз¢ÏÖһЩÎÊÌ⣬¿ÉÒÔ¸ù¾ÝÌáʾ£¬¼°Ê±²¹³ä°²×°£»¿É²Î¿¼Õâƪhttp://
Ïà¹ØÎĵµ£º
¸Õ¿ªÊ¼²Ù×÷Êý¾Ý¿âʱÎÒÒ»°ãÊDz»Ê¹ÓÃʲôgui¹¤¾ßµÄ£¬ÎÒÊÇÖ±½ÓʹÓÃcmdϲÙ×÷µÄ£¬¸Ð¾õÓÃÆðÀ´Ò²Í¦²»´íµÄ¡£
×î½ü¿´µ½ÓÐgui¹¤¾ßÄÇÒ²²»´í°¡£¬¾ÍÏÂÀ´Ê¹ÓÃһϣ¬ÎÒϲ»¶ÏµÄÊÇѹËõ°üÃâ°²×°µÄ£¬ÕâÑù¸Ð¾õ±È½ÏÊæ·þ°¡
´ò¿ª²éѯ¹¤¾ßÊǾ¹È»³ö´íÁË£¬²»¹ýÄÜÕý³£Ê¹Óõģ¬µ±Ê±Ò²Ã»ÓÐ×¢Ò⣬½ñÌìÌØÒâµÄ¿´ÁËÒ»ÏÂ
Ó¦¸ÃÊÇmysqlqb_functions.xml¼ÓÔØ ......
ÔÚ×ÀÃæÉÏн¨Ò»¸ö¿ÕµÄÎı¾Îļþmysql.txt,ÖØÃüÃûΪmysql.udl,Ë«»÷Õâ¸ömysql.udlÎļþ£¬´ò¿ª“Êý¾Ý¿âÁ¬½ÓÊôÐÔ”¶Ô»°¿ò£¬ÔÚ“Ìṩ³ÌÐò”ҳѡÔñ”Micrsoft Ole DB Provider for ODBC Drivers“£¬ µã»÷ÏÂÒ»²½£¬ÔÚ“Á¬½Ó”Ò³µÄ,"Ö¸¶¨Êý¾ÝÔ´"Ñ¡Ôñ"ʹÓÃÁ¬½Ó×Ö·û´®",µã» ......
ÔÚrootÕ˺ÅÖÐ,¿ÉÒÔÕý³£µ÷Óô洢¹ý³Ì.
»»µ½common_userÕ˺Åʱ,ͬһ´æ´¢¹ý³ÌÃûµ÷ÓóöÏÖÎÊÌâ.
×·×Ùµ÷ÊÔʱ³öÏÖ:
SELECT command denied to user 'common_user'@'localhost' for table 'proc'
ËÑË÷½â¾ö·½°¸:
MySqlConnection myconnection = new MySqlConnection("server=localhost;user id=common_user; password=***;dat ......
Ó¦¸Ã˵һ°ãµÄÊý¾Ý¿â¶¼ÓÐBackUpµÄÐèÇó, MySql±¸·ÝÊý¾Ý¿âµÄ·½Ê½ºÜ¼òµ¥, µ«ÊÇÔÚÍøÉÏ˵µÃÔÆÀïÎíÀï, Ò²Ó¦¸ÃÊÇÎÒ¶ÔMySqlÊý¾Ý¿â²»ÊìϤ.
Ä¿±ê(Target) : ½«±¾»úÖеÄmysqlÊý¾Ý¿â±¸·Ýµ½±¾»úÖеÄmydatabaseÊý¾Ý¿âÖÐ - Ò²¾ÍÊÇÍêÈ«µÄCopyÒ»¸öÊý¾Ý¿â.
#1. C:\Program Files\MySQL\MySQL Server 5.0\bin>mysqldump -u ......
1¡¢ÏÔʾÊý¾Ý¿âÁÐ±í£º
show databases;
¸Õ¿ªÊ¼Ê±²ÅÁ½¸öÊý¾Ý¿â£ºmysqlºÍtest¡£mysql¿âºÜÖØÒªËüÀïÃæÓÐMYSQLµÄϵͳÐÅÏ¢£¬ÎÒÃǸÄÃÜÂëºÍÐÂÔöÓû§£¬Êµ¼ÊÉϾÍÊÇÓÃÕâ¸ö¿â½øÐвÙ×÷¡£
2¡¢ÏÔʾ¿âÖеÄÊý¾Ý±í£º
use mysql£» //´ò¿ª¿â
show tables;
3¡¢ÏÔʾÊý¾Ý±íµÄ½á¹¹£ ......