import MySQLdb# 打开数据库连接db =
MySQLdb.connect("localhost","testuser","test123","TESTDB" )# 使用cursor()方法获取操作游标
cursor = db.cursor() #cursor用来执行命令的方法:
分类:
数据库 时间:
2014-05-10 06:03:19
阅读次数:
309
当tomcat启动出现这个错误时,按照如下步骤可以解决:1、删掉F:\tomcat20111101\apache-tomcat-6.0.26\conf\Catalina目录下的localhost文件夹2、删掉F:\tomcat20111101\apache-tomcat-6.0.26\webapps...
分类:
其他好文 时间:
2014-05-10 05:20:52
阅读次数:
290
在执行/etc/init.d/ndbd--initial出现下列错误[root@ndbd1~]#/etc/init.d/ndbd--initialUnabletoconnectwithconnectstring:nodeid=0,localhost:1186Retryingevery5seconds.Attemptsleft:121110987654321,failed.解决办法1.查看/etc/my.cnf文件配置[root@ndbd1~]#cat/etc/my.cnf..
分类:
数据库 时间:
2014-05-10 04:07:58
阅读次数:
1778
java.lang.IllegalArgumentException: Document base
D:\appservers\apache-tomcat-6.0.20\webapps\megaeyes_enterprise_manager does not
exist or is not a re...
分类:
移动开发 时间:
2014-05-09 16:09:21
阅读次数:
776
近来在centos 6.0
x64版本下安装vsftpd,中间出现一些问题,解决过程总结如下:安装vsftpd:yum install vsftpd安装后配置为虚拟用户登陆,然后用:ftp
localhost登陆测试总是出现错误提示:530 Login incorrect.Login failed....
分类:
其他好文 时间:
2014-05-09 15:30:35
阅读次数:
369
路径访问的几种方式和分页效果显示其它类别的效果和多数据分页效果默认访问网站路径效果和多数据分页效果URL路径访问可页面http://localhost:5339/stationeryhttp://localhost:5339/stationery/Page2http://localhost:5339...
分类:
Web程序 时间:
2014-05-09 09:00:14
阅读次数:
476
server=localhost;database=Northwind; integrated
security=SSPIMicrosoft安全支持提供器接口(SSPI)是定义得较全面的公用API,用来获得验证、信息完整性、信息隐私等集成安全服务,以及用于所有分布式应用程序协议的安全方面的服务。应用...
分类:
其他好文 时间:
2014-05-09 04:37:23
阅读次数:
297
Linux下修改主机名为gpdb步骤一、运行vi /etc/sysconfig/network命令NETWORKING=yesHOSTNAME=gpdb步骤二、运行hostname gpdb命令步骤三、运行vi /etc/hosts命令192.168.1.121 gpdb # Added by NetworkManager127.0.0.1 localhost.localdom...
分类:
系统相关 时间:
2014-05-09 01:48:57
阅读次数:
343
当前公司nagios已经正常使用,也能报警,但是邮件报警采用的是sendmail,发件人总是nagios@localhost,收到后经常被加入到邮件中的垃圾箱,并且有些邮箱服务器有反垃圾检测,导致用户接收不到邮件。为解决这个问题,决定自己写一个邮件发送程序。过程如下:1、开发发送邮件脚本[..
分类:
移动开发 时间:
2014-05-08 17:08:44
阅读次数:
505
ueditor编辑文章时候,当现有文章有图片的时候,
再复制粘贴文本进去的时候,里面的图片就不能显示了,
编辑器查看文章Html代码,图片路径显示为:src="http://localhost/images/net/error!"
正确是:src="http://localhost/images/adc.jpg"
而我用的是自定义的服务器的一个路径
查看源码,发现这块功能是如下...
分类:
其他好文 时间:
2014-05-08 15:53:42
阅读次数:
268