¡¡¡¡´óÐÍÍøÕ¾Ò»°ãʹÓÃOracle»òDB2£¬¶øÖÐСÐÍÍøÕ¾´ó¶àÊýʹÓøü¼ÓÁé»îСÇɵÄSQL ServerÊý¾Ý¿â»òÕßMySQLÊý¾Ý¿â¡£ÄÇô£¬ÔÚͬÑùµÄÌõ¼þÏ£¬Î¢ÈíµÄSQL ServerºÍÃâ·ÑµÄMySQLÄĸö¸ü¼Ó°²È«ÄØ?
¡¡¡¡Êý¾Ý¿âÊǵç×ÓÉÌÎñ¡¢½ðÈÚÒÔ¼°ERPϵͳµÄ»ù´¡£¬Í¨³£¶¼±£´æ×ÅÖØÒªµÄÉÌÒµ»ï°éºÍ¿Í»§ÐÅÏ¢¡£´ó¶àÊýÆóÒµ¡¢×éÖ¯ÒÔ¼°Õþ¸®²¿Ãŵĵç×ÓÊý¾Ý¶¼±£´æÔÚ¸÷ÖÖÊý¾Ý¿âÖУ¬ËûÃÇÓÃÕâЩÊý¾Ý¿â±£´æһЩ¸öÈË×ÊÁÏ£¬»¹ÕÆÎÕ×ÅÃô¸ÐµÄ½ðÈÚÊý¾Ý¡£µ«ÊÇÊý¾Ý¿âͨ³£Ã»ÓÐÏñ×öϵͳºÍÍøÂçÕâÑùÔÚ°²È«ÐÔÉÏÊܵ½ÖØÊÓ¡£Êý¾ÝÊÇÆóÒµ£¬×éÖ¯µÄÃüÂöËùÔÚ£¬Òò´ËÑ¡ÔñÒ»¿î°²È«µÄÊý¾Ý¿âÊÇÖÁ¹ØÖØÒªµÄ¡£´óÐÍÍøÕ¾Ò»°ãʹÓÃOracle»òDB2£¬¶øÖÐСÐÍÍøÕ¾´ó¶àÊýʹÓøü¼ÓÁé»îСÇɵÄSQL ServerÊý¾Ý¿â»òÕßMySQLÊý¾Ý¿â¡£ÄÇô£¬ÔÚͬÑùµÄÌõ¼þÏ£¬Î¢ÈíµÄSQL ServerºÍÃâ·ÑµÄMySQLÄĸö¸ü¼Ó°²È«ÄØ?
¡¡¡¡ÎÒÔÚÎҵĻú×ÓÉÏÃæÓùÜÀíÔ±ÕʺÅĬÈÏ°²×°ÁËmssqlºÍmysqlÒÔ±ãÔÚÏàͬµÄÇé¿öϲâÊÔËûÃǵݲȫÐÔ¡£ÎÒµÄϵͳÅäÖÃÈçÏ£º²Ù×÷ϵͳMicrosoft Windows 2000 Version5.0£¬°²×°ÁËsp4£¬ftp·þÎñºÍiis·þÎñ£¬Ö§³ÖaspºÍphp¡£ÏµÍ³Ö»ÓÐÒ»¸ö¹ÜÀíÔ±ÕʺÅadmin£¬guestÕʺÅûÓнûÓá£
¡¡¡¡Ò».ϵͳÄÚ²¿°²È«ÐÔ·ÖÎö
¡¡¡¡1.mysqlÊý¾Ý¿âȨÏÞ¿ØÖÆÎÊÌâ
¡¡¡¡mysqlµÄȨÏÞ¿ØÖÆÊÇ»ùÓÚmysqlÕâ¸öÊý¾Ý¿âµÄ£¬½Ð×öÊÚȨ±í£¬Ò»¹²°üÀ¨°üÀ¨Áù¸ö±ícolumns_priv£¬db£¬func£¬host£¬tables_privºÍuser¡£ÏÈʹÓÃdesc userÃüÁî²é¿´·Ç³£ÖØÒªµÄuser±íµÄ½á¹¹ÒÔ±ã²éѯÄÚÈÝ£¬ÏÖÔÚ¿ÉÒԲ鿴ËûµÄȨÏÞÉèÖÃÁË¡£Ê¹ÓÃÃüÁîselect host,user,password,delete_priv,update_priv,drop_priv from user;Õâ¸öÃüÁî²é¿´Á˼¸¸ö±È½ÏΣÏÕµÄȨÏÞ£¬ÏÔʾ½á¹ûÈçÏ£º
¡¡¡¡mysql> select host,user,password,delete_priv,update_priv,drop_priv from user;
¡¡¡¡+-----------+------+------------------+-------------+-------------+-----------+
¡¡¡¡| host | user | password | delete_priv | update_priv | drop_priv |
¡¡¡¡+-----------+------+------------------+-------------+-------------+-----------+
¡¡¡¡| localhost | root |0e4941f53f6fa106 | Y | Y | Y |
¡¡¡¡| % | root | | Y | Y | Y |
¡¡¡¡| localhost | | | Y | Y | Y |
¡¡¡¡| % | | | N | N | N |
¡¡¡¡+-----------+------+------------------+-------------+-------------+-----------+
¡¡¡¡4 rows in set (0.00 sec)
¡¡¡¡µÚÒ»Ìõ±íʾÔÚ±¾»úʹÓÃrootÓÃÃÜÂëµÇ½£¬ÓµÓÐɾ³ý¼Ç¼£¬Ð޸ļǼ£¬É¾³ý±íµÈȨÏÞ£¬ºÃ£¬ÕâÊÇ°²È«µÄ¡£µÚ¶þÌõ±íʾÔÚÈκÎÖ÷»úʹÓÃroot²»ÐèÃÜÂëµÇ½£¬ÓµÓÐɾ³ý¼Ç¼£¬Ð޸ļǼ£¬É¾³ý±íµÈȨÏÞ¡£µÚÈýÌõ±íʾÔÚ±¾»úÄäÃûµÇ½£¬ÓµÓÐɾ³ý¼Ç¼£¬Ð޸ļǼ£¬É¾³ý±íµÈȨÏÞ¡£×îºóÌõ±íʾ¿ÉÒÔÔÙÈκÎÖ÷»úÄäÃûµÇ½£¬µ«ÊÇûÓÐÈκÎȨÏÞ¡£ÏÔÈ»£¬µÚ¶þ£¬Èý£¬ËĶ¼ÊDz»°²È«µÄ!µÚ¶þÌõ²»ÓÃ˵£¬¾ÍµÚÈýÌõ¶øÑÔ£¬¾ÍËãÄãÔÚ±¾µØÊÇguestȨÏÞ£¬µ«ÊÇÒ²¿ÉÒԵǽmysqlÊý¾Ý¿â£¬¶øÇÒÓµÓÐÈ«²¿È¨ÏÞ¡£ÕâÑù£¬¾Í¿ÉÒÔ¶ÔÊý¾Ý¿âΪËùÓûΪÁË¡£
¡¡¡¡½â¾ö·½·¨£ºÈç¹ûÄã²»ÐèÒªÔ¶³Ìά»¤£¬É¾³ýµôµÚ¶þÌõ,delete from user where¡¡host="%" and user="root";»òÕ߸øËü¼Ó¸öǿ׳µÄÃÜÂ롣ɾ³ýµÚÈýÌõ£¬delete from¡¡user where host="localhost" and user="";
¡¡¡¡2.mysql°²×°Ä¿Â¼È¨ÏÞÎÊÌâ
¡¡¡¡mysqlĬÈÏ°²×°µ½c:\mysql£¬µ«ÊÇcÅÌĬÈÏÊÇeveryoneÍêÈ«¿ØÖÆ£¬ÓÉÓÚȨÏ޵ļ̳ÐÐÔ£¬c:\mysql¶ÔeveryoneÒ²ÊÇÍêÈ«¿ØÖƵģ¬ÏÔÈ»ÕâÑùÊDz»°²È«µÄ¡£ÒòΪ¶ñÒâÓû§¿ÉÒÔɾ³ýÖØÒªµÄÊý¾ÝÎļþ¡£
¡¡¡¡½â¾ö·½·¨£ºÖØÐÂÉèÖÃmysqlĿ¼µÄ´æȡȨÏÞ¡£»òÕß½«mysql°²×°µ½ÆäËûĿ¼,Èç¹ûÄãÒƶ¯Mysql·Ö·¢µ½D:\mysql£¬Äã¾Í±ØÐëʹÓÃÓÃD:\mysql\bin\mysqld --basedir D:\mysqlÀ´Æô¶¯mysqld£¬ÉõÖÁ»¹ÐèÒªÐÞ¸ÄËüµÄÅäÖÃÎļþ¡£
¡¡¡¡3.mssqlÊý¾Ý¿âȨÏÞ¿ØÖÆÎÊÌâ
¡¡¡¡mssqlÊý¾Ý¿âµÄȨÏÞ¿ØÖÆÊÇ»ùÓÚmaster¿âµÄsyslogins±í£¬ÓµÓÐËùÓÐȨÏÞµÄÕʺÅÊÇsa£¬ÆäËû»¹ÓÐsysadmin£¬db_ownerµÈ²»Í¬È¨ÏÞÕʺš£µ«ÊÇ£¬mssqlÊý¾Ý¿â×î¸ßȨÏÞÕʺÅsaµÄĬÈÏÃÜÂëÊÇ¿Õ£¬ÕâÑùÈç¹û°²×°µÄʱºò²»×¢Ò⣬¾Í»á¸øÊý¾Ý´øÀ´»ÙÃðÐÔµÄÔÖÄÑ¡£¶ñÒâ¹¥»÷Õß¿ÉÒÔÐ޸ģ¬É¾³ýËùÓÐÊý¾Ý£¬¸ü¼ÓÖØÒªµÄÊÇmssqlÕʺſÉÒÔÀûÓÃÀ©Õ¹Ö´ÐÐϵͳÃüÁî¡£
¡¡¡¡½â¾ö·½·¨£º¶¨ÆÚ¼ì²éËùÓеǽÕʺţ¬²é¿´ÊÇ·ñÓв»·ûºÏÒªÇóµÄÃÜÂë¡£
¡¡¡¡Use master
¡¡¡¡Select name,Password from syslogins where password is nullÃüÁî¼ì²éÊÇ·ñÓпտÚÁîÕʺŴæÔÚ¡£¾¡¿ÉÄܵÄɾ³ý´æ´¢À©Õ¹£¬·ÀÖ¹±¾µØÓû§ÀûÓô洢À©Õ¹Ö´ÐжñÒâÃüÁî¡£
¡¡¡¡use master
¡¡¡¡sp_dropextendedproc xp_cmdshell ÃüÁîɾ³ýxp_cmdshellÀ©Õ¹¡£
¡¡¡¡4.mssql°²×°Ä¿Â¼È¨ÏÞÎÊÌâ
¡¡¡¡Í¬mysqlÒ»Ñù£¬mssqlÒ²ÊÇ°²×°µ½everyoneÍêÈ«¿ØÖÆcÅÌ£¬ÓÉÓÚ´æÈ¡¿ØÖÆÎÊÌ⣬×îºÃ°²×°µ½dÅ̵ȷÇϵͳÅ̽øÐÐÑϸñµÄȨÏÞ¿ØÖÆ¡£¶øÇÒ£¬ÓÉÓÚmssqlÊý¾Ý¿âÓëϵͳ½áºÏ·Ç³£½ôÃÜ£¬ÏµÍ³¹ÜÀíÔ±ÔÚûÓÐÊý¾Ý¿âÃÜÂëµÄÇé¿öÏÂÒ²¿ÉÒÔͨ¹ýÑ¡ÔñwindowsÑéÖ¤À´²Ù×÷Êý¾Ý¿â¡£Òò´Ë£¬ÆÕͨÓû§ÓпÉÄÜͨ¹ýϵͳ©¶´ÌáÉý×Ô¼ºµÄȨÏÞ£¬¶ÔÊý¾Ý¿â½øÐÐÆÆ»µ¡£
¡¡¡¡½â¾ö°ì·¨£º³ýÁËÑϸñµÄ´æÈ¡ÏÞÖÆÍ⣬»¹Òª¶¨Æڲ鿴SQL ServerÈÕÖ¾¼ì²éÊÇ·ñÓпÉÒɵĵǼʼþ·¢Éú£¬»òÕßʹÓÃDOSÃüÁîfindstr /C:"µÇ¼" d:\Microsoft SQL Server\MSSQL\LOG\*.*¡£
¡¡¡¡mssqlµÄ°²È«ÊǺÍwindowsϵͳ°²È«½ôÃܽáºÏµÄ£¬ÈκÎÒ»¸ö³öÏÖ©¶´£¬¶¼»áÍþвµ½ÁíÒ»¸öµÄ°²È«¡£
¡¡¡¡×ܽᣬÔÚϵͳÄÚ²¿°²È«ÐÔÉÏ£¬mysqlºÍmssql¶¼Ã»ÓдﵽÁîÈËÂúÒâµÄ³Ì¶È£¬ÕʺŰ²È«£¬´æȡȨÏÞ¶¼¿ØÖƵIJ»ÊǺܺᣵ«ÊÇmssqlÓÐÏêϸµÄÈÕÖ¾¿ÉÒԲ鿴µÇ½Çé¿ö£¬±ÈmysqlÒª¸ß³öÒ»³ï¡£Èç¹û½øÐÐÁ˺ÏÀíµÄÉèÖã¬mysql·´¶øÒª¸ü¼Ó°²È«Ð©£¬ÒòΪ¶Ômssql¶øÑÔ£¬Ö»ÒªÓÐϵͳȨÏÞ¼´¿ÉÓµÓÐÊý¾Ý¿âȨÏÞ¡£