mysql 3306 ¶Ë¿Ú û·¨ÏòÍâ·ÃÎÊ
ϵͳ:windows server 2003
·þÎñÆ÷:IIS
MYSQL 5.0
ϵͳ·À»ðǽÊǹرյÄ
PC1 192.168.1.2
PC2 192.168.1.99
Ò»,ÎÒÓôĘ̈»úÆ÷PC1 telnet 192.168.1.2 3306 ²»Í¨
¶þ,ÆäËüµÄ»úÆ÷ telnet 192.168.1.2 3306 ÊÇͨµÄ
Èý,µ«ÎÒÓÃÆäËüµÄ»úÆ÷ telnet 192.168.1.99 3306 ÊÇͨµÄ.
²»ÖªµÀʲôÔÒò????
¾ÍÕą̂»úÆ÷PC2µÄ3306¶Ë¿Úû·¨ÏòÍâ·ÃÎÊ...
PC1 ÄãÊÔÒ»ÏÂ
telnet 192.168.1.2 80
¿´½á¹ûÈçºÎ£¿
telnet 192.168.1.2 80 òËÆÒ²²»ÐС£
ÊDz»ÊÇÄ㿪·ÅÁËÄãµÄ3306¶Ë¿Ú ·ÃÎʲ»ÊÜIPÏÞÖÆ
¶ø192.168.1.2¶ÔÍ⿪·ÅÁË¶Ë¿Ú µ«ÊÇÖ»¶ÔÄãµÄip½øÐÐÁËÏÞÖÆ
ÄãÔÚ192.168.1.2 ½øÈëmysql
mysql> use mysql
Database changed
SQL code:
mysql> select host,user from user;
+-----------+-------+
| host | user |
+-----------+-------+
| % | model |
| % | scot |
| localhost | root |
+-----------+-------+
3 rows in set (0.00 sec)
¿´Ò»ÏÂÄãµÄÊÜÏÞÖÆû
root µÄȨÏÞÊÇ% ÈÎÒâÖ÷»ú
Äã192.168.1.102 ×°apacheû
×°ÁËAPACHE £¬ÓÃÆäËüµÄ»úÆ÷telnet 192.168.1.2 80¶¼¿ÉÒÔ¡£
ÏÖÔÚ ÄãÓÃ192.168.1.99 telnet ÆäËû±ðµÄ»úÆ÷ÊÔÊÔ
Èç¹ûÒ²²»ÄÜÁªÍ¨ÄǾÍÊÇÄã»úÆ÷ÉèÖÃÎÊÌâ
½á¹ûÓÐÁ½ÖÖ£º
1.ÄÜÁªÍ¨ËµÃ÷ 192.168.1.2 ¶ÔÄãµÄipµ¥¶À½øÐÐÁËÏÞÖÆ
2.²»ÄÜÁ
Ïà¹ØÎÊ´ð£º
ÎÒ֮ǰµ¼ÈëµÄÊý¾Ý¿â£¬ÏÖÔÚɾ³ý²»ÁË£¬ÓÃÁËÃüÁîÐк͹¤¾ß¶¼²»ÐУ¬ÖØÆôÒ²²»ÐУ¬ÕâÊÇΪʲôÄØ£¿
ÄãÊÇÈçºÎɾ³ýµÄ£¿
ÓÐʲôÌáʾ£¿
ÎÊÌâ˵Ã÷Ô½Ïêϸ£¬»Ø´ðÒ²»áԽ׼ȷ£¡²Î¼ûÈçºÎÌáÎÊ¡££¨ÌáÎʵÄÖǻۣ©
......
SELECT a.tguildname ,SUM(a.ct) + if (SUM(b.ct) IS NULL ,0,SUM(b.ct)) from (
SELECT tg.tguildname,c.cid, (
cf.fbb + cf.fgjbb + cf.fjybb + cf.fqb + cf.fgjqb + cf.fjyqb + cf.fqib + cf. ......
ÎÒÓõÄÁ½Ì¨·þÎñÆ÷£¬¶¼ÊÇwin2003µÄ£¬ÆäÖÐһ̨װPHP£¬Áíһ̨װMYSQL×öÊý¾Ý¿â£¬ÔÚͬһ¸öÍø¶ÎÄÚ
ƽʱÔËÐÐûÓÐÎÊÌ⣬µ±ÎÒÓÃ×Ô¼ºµçÄÔÔ¶³Ì×ÀÃæÒ»Á¬½ÓMYSQLÊý¾Ý¿âÄÇ̨·þÎñÆ÷£¬PHP¾ÍÏÔʾ¡°can't connect MYSQL ser ......
ÏÖÔÚÎÒÏëʵÏÖÒÔÏ·½·¨£º
»·¾³struts2+ibatis2.3+mysql5
´ÓjspµÃµ½Êý¾ÝºóÏÈupdate £¬Èç¹ûÊý¾Ý¿âÀïûÓиÃÐÅÏ¢ÔÙ insert £¬ÎÒÓÃÁËtry catch Òì³£²¶×½£¬±¾Ïëtry{ update}
catc ......