码迷,mamicode.com
首页 >  
搜索关键字:connection timed out    ( 41605个结果
Multi-Thread 1: how to use synchronized
1. synchronized If two threads are using the same function( here we use output to print out string) of another instance, if we want to make sure that these two threads are not disturbing each other. ...
分类:其他好文   时间:2014-05-15 11:14:14    阅读次数:389
【Java编程】建立一个简单的JDBC连接-Drivers, Connection, Statement and PreparedStatement
本blog提供了一个简单的通过JDBC驱动建立JDBC连接例程,并分别通过Statement和PreparedStatement实现对数据库的查询。在下一篇blog中将重点比较Statement与PreparedStatement的差异。 1、为项目添加JDBC驱动 1)JDBC驱动下载          官方下载地址:mysql-connector-java-5.0.8.zip...
分类:数据库   时间:2014-05-15 07:00:40    阅读次数:479
LeetCode-004 Add Two Numbers
【题目】 You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list. Input: (2 -> 4 -> 3) + (5 -> 6 -> 4) Out...
分类:其他好文   时间:2014-05-15 05:13:49    阅读次数:306
学习C/C++语言:文件的操作
#include #include void main(int argc,char *argv[]) { FILE *in,*out; if(argc!=3) { printf("you forgot to enter a file name\n"); exit(0); } if((in=fopen(argv[1],"r"))==NULL) { printf("cannot...
分类:编程语言   时间:2014-05-14 21:37:56    阅读次数:321
【Java编程】JDBC注入攻击-Statement 与 PreparedStatement
在上一篇【Java编程】建立一个简单的JDBC连接-Drivers, Connection, Statement and PreparedStatement我们介绍了如何使用JDBC驱动建立一个简单的连接,并实现使用Statement和PreparedStatement进行数据库查询,本篇blog将接着上篇blog通过SQL注入攻击比较Statement和PreparedStatement。当然这两者还有很多其他方面的不同,在之后的blog中会继续更新。...
分类:数据库   时间:2014-05-14 20:44:25    阅读次数:497
MongoDB---出现no write has been done on this connection解决方案
出现no write has been done on this connection解决方案...
分类:数据库   时间:2014-05-14 19:42:51    阅读次数:403
javascript和<c:out value=""/>的结合使用
当你和数据库交互数据的时候,我们可能在一个字段里存了很多信息,并且使用符号分隔开来,那么怎样才能分别得到每一段的信息呢?比如说当你分期付款的时候,可能分好几个期次,那么我们应该怎么将他们分隔开,并且在现实的时候显示出已经选中的:<inputtype="checkbox"name=..
分类:编程语言   时间:2014-05-14 19:15:10    阅读次数:504
Java多线程
1.简单Java多线程例子(继承Thread)publicclasshelloextendsThread{ privateStringname; publichello(Stringname){ this.name=name; } publicvoidrun(){ for(inti=0;i<5;i++){ System.out.println(name+"运行..."+i); } } publicstaticvoidmain(String[]args){ hellohel..
分类:编程语言   时间:2014-05-14 17:45:57    阅读次数:318
java database connectivity
用到的接口和类 1) java.sql.Connection 接口 1)) createStatement() 获得Statement 2)) prepareStatement(String sql) 获得preparedStatement 3)) prepareCall(String sql) 调用存储过程 2)java.sql.DriverManager 类 1))getConnection(String url, String user, String passwor...
分类:数据库   时间:2014-05-14 15:14:08    阅读次数:519
mysql 随笔
mysql_connect(): Connection using old (pre-4.1.1) authentication protocol refused解决方法有如下三种:1、服务器端升级启用secure_auth选项;2、客户端连接时off掉secure_auth,即连接时加上--sec...
分类:数据库   时间:2014-05-14 12:42:12    阅读次数:528
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!