¹ØÓÚhibernateÅäÖÃc3p0Á¬½Ó³ØÁ¬½ÓmysqlÎÊÌâ
ǰЩÌì¿´ÁËÀî¸Õ<struts2+hibernate+spring>ÄÇÊéÉϵÄhibernate£¬ÅäÖÃÎļþÒ²ÊÇ°´ÕÕÉÏÃæÇýøhibernate.cfg.xmlÎļþµÄ£¬Student.javaÅäÖõÄStudent.hbm.xmlÎļþ¾õµÃҲûʲôÎÊÌ⣬µ«²»Öªµ½Ôõô»ØʾÍÊDZ¨ connection can not open¡£ÓôÃÆ°¡£¬ºóÀ´ÎҾͰÑÊéÀïÃæµÄÅäÖÃÎļþºÍÔ´Â룬¸´ÖƵ½MyEclipseÏÂÃæµÄÒ»¸öÐÂwebÏîÄ¿ÖУ¬ÔËÐУ¬àËÕæÏÂÐÐÁË£¬Õâ˵Ã÷Ï£¬ÄÇ<propertyname="hibernate.connection.url">jdbc:mysql://localhost:3306/test</property>"test"Êý¾Ý¿â£¬±ØÐëÊÇÏȽ¨Á¢µÄ£¬Òª²»Êǻᱨconnection ´ò²»¿ªµÄ´íÎó¡£ÓÚÊǽÓ×ÅÔËÐÐÏÂÎÒ֮ǰдµÄÄÇÓôÃÆÏîÄ¿£¬ºÙ£¬¾ÓȻҲÐÐÁË¡£ÎÒÒ²ºÜÓôÃÆ°¡£¬Ö®Ç°²»Ò»ÑùµÄÅäÖÃô£¬ÔõôÏÖÔÚ¾ÍÐÐÁËÄØ£¡£¡£¡
ÎÒÌùÏÂÔ´Âë ºÍÅäÖÃÎļþ°É£¬´óÏÀ °ï濴ϵ½µ×ÊÇÕ¦À²£¬
Ò»£ºhibernate.cfg.xmlÎļþ<?xml version='1.0' encoding='GBK'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<!-- Generated by MyEclipse Hibernate Tools. -->
<hibernate-configuration>
<session-factory>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<!-- Ö¸¶¨Á¬½ÓÊý¾Ý¿âµÄurl£¬hibernateÁ¬½ÓµÄÊý¾Ý¿âÃû -->
<property name="connection.url">jdbc:mysql://localhost/tt</property>
<!-- Êý¾Ý¿âÓû§Ãû -->
<property name="connection.username">root</property>
<!-- Êý¾Ý¿âÃÜÂë -->
<property name="connection.password">108226</property>
<!--ÓÃc3p0Á¬½Ó³ØÁ¬½ÓËùÔÊÐíµÄ×î´óÁ¬½ÓÊý-->
<
Ïà¹ØÎĵµ£º
ĬÈÏÇé¿öÏÂLinuxÄÚµÄmysqlÊý¾Ý¿âmysql£¬user±íÄÚµÄÓû§È¨ÏÞÖ»ÊǶÔlocalhost¼´±¾»ú²ÅÄܵǽ¡£ÐèÒª¸ü¸ÄȨÏÞ£º
Èçϵķ½Ê½È·ÈÏ£º
root#mysql -h localhost-u mysql -p
Enter password: ******
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connectio ......
ʾÀýÑÝʾÁËÓÃC#²Ù×÷MySQLµÄ·½·¨£¬ÌṩÁËÈý¸ö¿ÉÖØÓõÄÀàMySqlDBUtil,MySqlPageUtil,Page¡£
±¾Ê¾ÀýÓÉ C#²Ù×÷AccessÊý¾Ý¿âµÄ¼òµ¥Àý×Ó£¨http://www.albertsong.com/read-56.html£©Ð޸ĶøÀ´¡£
1.Ê×ÏÈÏÂÔØMySQLÊý¾Ý¿âµÄ.NETÇý¶¯
http://dev.mysql.com/get/Downloads/Connector-Net/mysql-connector-net-5.0.8.1-noinstall.zip/ ......
ÔÚ<TCHAR.h>Í·ÎļþÀÓÐÕâôһ×é²Ù×÷ÎļþµÄºê
#define _tfdopen _wfdopen
#define _tfsopen _wfsopen
#define _tfopen _wfope ......
2005Ä껪ΪÕÐƸ--CÓïÑÔ±ÊÊÔÊÔÌâ
Ò»¡¢ÅжÏÌ⣨¶ÔµÄдT£¬´íµÄдF²¢ËµÃ÷ÔÒò£¬Ã¿Ð¡Ìâ4·Ö£¬¹²20·Ö£©
1¡¢ÓÐÊý×鶨Òåint a[2][2]={{1},{2,3}};Ôòa[0][1]µÄֵΪ0¡££¨ T £©
2¡¢int (*ptr) (),ÔòptrÊÇһάÊý×éµÄÃû×Ö¡££¨ F£¬ ptrΪһ¸öº¯ÊýÖ¸Õë £©
3¡¢Ö¸ÕëÔÚÈκÎÇé¿öÏ ......