代码:import MySQLdbconn=MySQLdb.connect(host='127.0.0.1', user='root', passwd='root', db='test', port=3306)cur=conn.cursor()row = cur.execute('select * ...
分类:
数据库 时间:
2014-12-08 12:17:46
阅读次数:
205
在搜索里添加product Name,然后修改成你需要的app名称 修改完后可能会报错误如下 原因是test的测试路径发生了变化,其实如果不修改Test host的路径保留原来的重命名之前的app也是能编译过去的,但是可能会影响以后的测试工作 在Target中选择test的项目,搜索中输入test ...
分类:
移动开发 时间:
2014-12-08 10:40:37
阅读次数:
186
作为一个php初学者,对于php还处于一个很浅显的认识中,所以将我所学习的代码附上,,并添加自己的注释,认识,便以后的复习使用;php连接mysql数据库: 1 '; 3 4 /** 5 * 数据库连接配置 6 */ 7 $db_host = 'localhost'; 8 $db_databa...
分类:
Web程序 时间:
2014-12-08 10:29:53
阅读次数:
223
create database link WZGLconnect to MMCSG_GX(用户名)using '(description=(address_list=(address=(host=xx.xxx.xx.xxx(ip地址))(protocol=tcp)(port=端口号)))(conne...
分类:
数据库 时间:
2014-12-08 00:33:58
阅读次数:
269
想用一下 dig 指令来进行域名设置的查询,结果 CentOS 提示没有此指令,然后想当然的以为就需要安装 DIG 软件包,可是查了查才知道实际上 dig、host、nslookup 这几个指令都在 bind-utils 软件包里面。安装 bind-utils 倒是极简单,直接 yum 安装即可,y...
分类:
其他好文 时间:
2014-12-06 22:53:36
阅读次数:
250
使用mysqladmin # ./mysqladmin -u root password ‘newpassword‘
# ./mysqladmin -u root -h host_name password ‘newpassword‘ Usually mysqladmin‘s path is /usr/bin, host_name is your real host name, e.g....
分类:
数据库 时间:
2014-12-06 21:40:25
阅读次数:
285
在C++的GPU库thrust中,有两种vectorthrust::device_vector D; //GPU使用的内存中的向量thrust::host_vector H; //CPU使用的内存中的向量其中host_vector是可以用构造函数初始化的,比如:thrust::host_vecto....
分类:
其他好文 时间:
2014-12-06 15:16:05
阅读次数:
169
我定义了一个结构体,然后初始化它,结果编译报错no appropriate default constructor available代码如下:struct matrixXvect_func{ thrust::host_vector& matrix; thrust::host_vector& vec...
分类:
移动开发 时间:
2014-12-05 21:04:41
阅读次数:
164
首先,我yum的httpd,把备份好的文件会存到/data/backup,并且在http.conf中配置虚拟目录alias/mogodb/"/data/backup"
<Directory"/data/backup">
OptionsIndexesFollowSymLinks
AllowOverrideAll
Orderallow,deny
Allowfromall
</Directory>当我访问http://host/m..
分类:
Web程序 时间:
2014-12-05 19:30:39
阅读次数:
185