php连接数据库分两种,一种是IP,一种是unix sock,即localhost,如果是连接本地mysql,用localhost较好,也方便后期的管理,如果用于连接非本地数据库,则要通过IP了。php连接mysql代码打开网页后出现下面代码cannot connect mysqlCan't con...
分类:
Web程序 时间:
2014-07-09 23:20:47
阅读次数:
277
用conn /as sysdba登录数据库。一:先新建用户create user test01 identified by test02(test01为用户名,test02为用户密码)二:赋予数据库操作的基本权限grant connect,resource,dba to test01;三:创建表空间...
分类:
数据库 时间:
2014-07-06 23:54:12
阅读次数:
354
远程使用Navicat for mysql 客户端软件连接 mySql数据时,连接出现 2003-Can’t connect to MySQL on ’192.168.1.2’(10061)错误时,是由于MySQL不准许远程连接。修改方法如下: 1:在服务端MySQL文件夹下找到my.ini文件。修...
分类:
数据库 时间:
2014-07-06 22:15:12
阅读次数:
322
http://xxciof.blog.163.com/blog/static/7978132720095193113752/oracle中 connect by prior 递归算法Oracle中start with...connect by prior子句用法 connect by 是结构化查询中...
分类:
数据库 时间:
2014-07-06 21:22:08
阅读次数:
216
有时候在操作Session时,系统会抛出如下异常java.lang.IllegalStateException: Cannot create a session after the response has been committed原因1:Session 的创建语句:HttpSession se...
分类:
编程语言 时间:
2014-07-06 20:38:38
阅读次数:
298
不知道怎么回事,实验室的电脑在同学搞过之后,每次启动都报错rpcbind: cannot open '/run/rpcbind/rpcbind.xdr' file for reading, errno 2 (no such file or directory)rpcbind: cannot open...
分类:
其他好文 时间:
2014-07-06 14:45:46
阅读次数:
301
accept()函数 系统调用 accept() 会有点古怪的地方的! 你能够想象发生 这种事情:有人从非常远的地方通过一个你在侦听 (listen()) 的port连接 (connect()) 到你的机器。它的连接将添?到等待接受 (accept()) 的队列 中。 你调用 accep...
分类:
其他好文 时间:
2014-07-06 14:27:49
阅读次数:
182
Description
Little John is herding his father's cattles. As a lazy boy, he cannot tolerate chasing the cattles all the time to avoid unnecessary omission. Luckily, he notice that there were N trees...
分类:
其他好文 时间:
2014-07-06 10:39:09
阅读次数:
188
执行启动nginx:/usr/local/nginx/sbin/nginx
错误:/usr/local/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
查找:[roo...
分类:
其他好文 时间:
2014-07-06 00:11:52
阅读次数:
205
使用tcp协议,链接服务器的方法 /// /// 连接使用tcp协议的服务端 /// /// 服务端的ip /// 服务端的端口号 /// public static Socket Connect...
分类:
其他好文 时间:
2014-07-05 22:43:05
阅读次数:
364