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

TomCat6.0Êý¾Ý¿âÁ¬½Ó³ØÅäÖÃʵÀý(mysqlÊý¾Ý¿â)

TomCat6.0Êý¾Ý¿âÁ¬½Ó³ØÅäÖÃʵÀý(mysqlÊý¾Ý¿â)
TomCat6.0Êý¾Ý¿âÁ¬½Ó³ØÅäÖÃÓм¸ÖÖ·½Ê½£¬ÔÚÕâÀïÎÒÖ»½éÉÜÆäÖеÄÒ»ÖÖ¹©´ó¼Ò²Î¿¼£º
ÏÂÃæÎÒ°ÑÅäÖùý³Ì·Ö³ÉÈý¸ö²½ÖèÀ´Íê³É£º
µÚÒ»²½£ºÔÚÄã°²×°TomCatµÄĿ¼ÏÂÕÒµ½context.xmlÅäÖÃÎļþ¡££¨ÀýÈ磺D:\Tomcat 6.0\conf\context.xml£©È»ºó´ò¿ªcontext.xml£¬ÔÚ±êÇ©<context></<context>Ö®¼ä¼ÓÈëÒÔÏÂÄÚÈÝ£º(ΪÁË´ó¼ÒÈÝÒ×Àí½â£¬ÎÒ¼ÓÁ˽ÏÏêϸµÄ×¢ÊÍ)
<Resource
name="jdbc/course" //Êý¾ÝÔ´Ãû³Æ£¨×Ô¶¨Ò壩µ½Ê±ºòÒªÓõ½µÄ£¬ËùÒÔ×îºÃÆð
//¸öÓк¬ÒåµÄÃû×Ö£¬ÀýÈçÎÒÕâ¸öÊý¾ÝÔ´Ãû×Ö£¬jdbc±íʾÓë//Êý¾Ý¿âÁ¬½ÓÓйصģ¬¶øcourseÊÇÎÒÕâ¸öÏîÄ¿µÄÃû×Ö¡£
auth="Container" //Õâ¸öĬÈϾͺÃÁË
type="javax.sql.DataSource" //Õâ¸öҲĬÈϾͺÃÁË
              driverClassName="com.mysql.jdbc.Driver"//ÕâÀïÓõ½µÄÊÇmysqlÊý¾Ý¿âµÄÇý¶¯°ü¡£
              url="jdbc:mysql://localhost/course" //ÕâÀïÊÇÁ¬½Óµ½mysqlÊý¾Ý¿âµÄurl£¬ÆäÖÐurl="jdbc:mysql://localhost/"Êǹ̶¨µÄ£¬¶øcourseÊÇÎÒÕâ¸ö //ÏîÄ¿µÄÊý¾Ý¿âÃû³Æ£¬ËùÒÔÕâÀï¸ÄΪÄãÃǵÄÊý¾Ý¿âÃû³Æ¾ÍºÃÁË¡£
              username="root"//µÇ½Êý¾Ý¿âµÄÓû§Ãû 
     password="admin" //µÇ½Êý¾Ý¿âµÄÃÜÂë
     maxIdle="5"//Õâ¸öҲĬÈϾͺÃÁË
              maxWait="5000"//Õâ¸öҲĬÈϾͺÃÁË
              maxActive="10"/>//Õâ¸öҲĬÈϾͺÃÁË
µÚ¶þ²½£ºÔÚÄãµÄÏîÄ¿WEB-INFĿ¼ÏÂÕÒµ½web.xmlÅäÖÃÎļþ£¬È»ºó´ò¿ª£¬ÔÚ±êÇ©<web-app></web-app>Ö®¼ä¼ÓÈëÒÔÏÂÄÚÈÝ£º
<resource-ref>
<description>DB Connection</description>
<res-ref-name>jdbc/course</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
ÆäÖУºDB Connection ÊÇ×Ô¶¨ÒåµÄ£¬¶øjdbc/courseÊǶÔÓ¦ÉÏÃæ<Resource></Re


Ïà¹ØÎĵµ£º

Weblogic 9.1µÄdomainÅäÖÃmysqlÁ¬½Ó³Ø

 
Weblogic 9.1µÄdomainÅäÖÃmysqlÁ¬½Ó³Ø
¡¡¡¡±¾ÎĽéÉÜÔÚweblogic 9.1ϵÄdomainÅäÖÃmysqlÁ¬½Ó³Ø²½Ö裺
¡¡¡¡1.ÔÚweblogicĿ¼ÏµÄserverlibÏÂÌí¼ÓmysqlÇý¶¯
¡¡¡¡mysql-connector-java-3.1.11-bin.jar
¡¡¡¡2.ÔÚweblogicĿ¼ÏµÄcommoninÏÂÕÒµ½commEnv.cmd´ò¿ª
¡¡¡¡ÕÒµ½set weblogic_classpath= ºó±ß¼ÓÉÏmysqlÇý¶¯ ......

linuxÏÂMySQL°²×°¼°ÉèÖÃ

1. ¹ØÓÚ±¾ÎÄ
±¾ÎĽ«ÒÔMySQL 5.0.51ΪÀý£¬ÒÔCentOS 5Ϊƽ̨£¬½²ÊöMySQLÊý¾Ý¿âµÄ°²×°ºÍÉèÖá£
2. ¹ØÓÚMySQL
MySQLÊÇ×îÁ÷ÐеĿªÔ´SQLÊý¾Ý¿â¹ÜÀíϵͳ£¬ËüÓÉMySQL AB¿ª·¢¡¢·¢²¼ºÍÖ§³Ö¡£MySQL ABÊÇÒ»¼ÒÓÉMySQL¿ª·¢ÈËÔ±´´½¨µÄÉÌÒµ¹«Ë¾£¬ËüÊÇÒ»¼ÒʹÓÃÁËÒ»Öֳɹ¦µÄÉÌҵģʽÀ´½áºÏ¿ªÔ´¼ÛÖµºÍ·½·¨Â۵ĵڶþ´ú¿ªÔ´¹«Ë¾¡£MySQLÊÇMySQL ......

mysqlµÄ¸ßЧ´æÈ¡¹ý³Ì·ÖÒ³

 10wÒÔÉÏÊý¾ÝµÄЧÂʱÈÆÕͨ·ÖÒ³ ¿ì4-5±¶
PROCEDURE p_pageList (m_pageNo int , m_perPageCnt int , m_indexcolumn varchar(100), m_column varchar(1000) , m_table varchar(1000) , m_condition varchar(1000), m_orderBy varchar(200) , inout m_totalPageCnt int)
BEGIN
IF m_totalPageCnt >=1 THEN
 S ......

MYSQLÃüÁת£©

µÚÒ»¡¢mysql·þÎñµÄÆô¶¯ºÍÍ£Ö¹
net stop mysql
net start mysql
µÚ¶þ¡¢µÇ½mysql
Óï·¨ÈçÏ£º mysql -uÓû§Ãû -pÓû§ÃÜÂë
¼üÈëÃüÁîmysql -uroot -p£¬ »Ø³µºóÌáʾÄãÊäÈëÃÜÂ룬ÊäÈë12345£¬È»ºó»Ø³µ¼´¿É½øÈëµ½mysqlÖÐÁË£¬mysqlµÄÌáʾ·ûÊÇ£º
mysql>
×¢Ò⣬Èç¹ûÊÇÁ¬½Óµ½ÁíÍâµÄ»úÆ÷ÉÏ£¬ÔòÐèÒª¼ÓÈëÒ»¸ö²ÎÊý-h»úÆ÷IP
µÚÈý¡ ......

Mysql·Ö²¼ÊÂÎñµÄ̽Ë÷

ÓÉÓÚÏîÄ¿ÐèÒª,¶Ômysql·Ö²¼ÊÂÎñÓÐÒ»¶¨ÒªÇó.ÕâÀïÏȼòµ¥ËµÃ÷±ØÒª.
¼ÙÉè,ÈÕ³£²ÆÎñÖÐ,ÒªÍê³ÉÒ»¸öÓµ»¤¶©¹º,±ØÐ뽫¶¨µ¥²Ù×÷ºÍ²ÆÎñ²Ù×÷·âÔÚÒ»¸öÊÂÎñÖвÅÄܱ£Ö¤½»Ò×ÍêÕûÐÔ.
Èç¹û¶¨µ¥ºÍ²ÆÎñÊý¾Ý¶¼·Ö²¼ÔÚ¸÷×ÔµÄʵÀýÖÐ,Ôò±ØÐëÓ÷ֲ¼ÊÂÎñ²ÅÄÜÂú×ã.
·Ï»°²»¶à£¬½øÈë·Ö²¼ÊÂÎñ̽Ë÷¡£
(±¾ÎÄÀý×ÓÀ´×ÔÍøÂ磬±¾ÎÄÖ»×¢ÖØ̽Ë÷£©
1.ÔÚ±¾»ú loca ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ