functionconnect($hostInfo){
$link=mysql_connect($hostInfo[‘host‘],$hostInfo[‘username‘],$hostInfo[‘password‘])ordie("MysqlConnectFailed.");
mysql_set_charset($hostInfo[‘charset‘]);
mysql_select_db($hostInfo[‘dbname‘]);
return$link;
}
$arr=array(
"host..
分类:
数据库 时间:
2014-08-24 10:22:42
阅读次数:
267
public static final String BASE_URL = "http://127.0.0.1:8090/HelloWord/"...;
会抛异常Caused by: libcore.io.ErrnoException: connect failed: ECONNREFUSED (Connection refused)
解决方法:
String url =...
分类:
移动开发 时间:
2014-08-24 00:23:51
阅读次数:
530
问题:
今天中午沛爷解决了OJ打开慢的问题以后刚走,我随后在oj上交了个题目就发现waiting了.....
问马前辈和全哥,均认为测评程序挂了,于是重启测系统,还waiting.....(测评系统的进程一直在,就是waiting)
听全哥的开始查看测评系统的日志文件:
日志文件在oj_judge/nohup.out,出现N多的ERROR:root:Cannot connect to da...
分类:
其他好文 时间:
2014-08-23 19:07:01
阅读次数:
253
1、adb(Android Debug Bridge) 意为android调试桥。
是android系统中的一种命令行工具,通过它可以和android设备或模拟器通信。
ADB是一个C/S架构的应用程序,由三部分组成:
1)adb client, 运行在PC上(为DDMS,即IDE工作)
2)adb daemon(守护进程), 运行于Emulator(为与E...
分类:
数据库 时间:
2014-08-23 15:26:22
阅读次数:
297
Problem DescriptionThere are N villages, which are numbered from 1 to N, and you should build some roads such that every two villages can connect to e...
分类:
其他好文 时间:
2014-08-23 15:15:40
阅读次数:
234
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'的解决原因是目录 的访问权限问题,ubuntu下用下面的命令(其他发行版用管理员权限,把sudo去掉)sudo chown -R mysql...
分类:
数据库 时间:
2014-08-23 15:06:40
阅读次数:
220
public function connect($h,$u,$p) { $this->conn = mysql_connect($h,$u,$p); if(!$this->conn) { $err = new Exception('连接失败'); ...
分类:
其他好文 时间:
2014-08-23 13:50:40
阅读次数:
214
Android adb setup for ubuntu connect the device to ubuntu, use command $sudo lsusb will display like: mean: Spreadtrum device idVendor 1782 ?idProduct 5d24 1, touch the file: ~/.android/adb_usb.in...
分类:
移动开发 时间:
2014-08-23 03:36:20
阅读次数:
249
Androidadb.exe程序启动不起来,如何处理(2014-02-26 15:58:14)转载▼标签:androidadb的启动android中adb.exe程序经常遇到 Please ensure that adb is correctly located at 'D:\java\sdk\pl...
分类:
移动开发 时间:
2014-08-22 19:42:09
阅读次数:
204
一台测试服务器上的数据库无法访问,远程能访问服务器1521端口,但是通过pl/sql连不上。 登录数据库服务器,执行: $ lsnrctl statusListening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=1...
分类:
其他好文 时间:
2014-08-22 17:43:49
阅读次数:
236