要使用QSqlQuery或者QSqlQueryMode访问一个数据库,首先需要创建并打开一个或多个数据库连接(database connections)。 一般地,数据库连接是根据连接名(connection name)来识别的,而不是依靠数据库名称。你可以建立多个连接,但连接到同一个数据库。...
分类:
数据库 时间:
2015-03-05 22:13:03
阅读次数:
214
我们知道svn提交文件后可以自动更新代码到其web网站。但是svn提交后容易出问题,而且机器多的话不好操作,文件一大就比较慢,容易出现问题。这样就想着搭建一个高效的自动更新代码的架构。rsync传输文件自是不用多说,非常的便捷高效。这里只贴下配置服务端(192.168.0.202)#v..
分类:
其他好文 时间:
2015-03-05 07:00:17
阅读次数:
280
netctl is a CLI-based tool used to configure and manage network connections via profiles. It is a native Arch Linux project for network configuration....
分类:
Web程序 时间:
2015-03-04 22:40:42
阅读次数:
201
show variables like 'max_connections';
分类:
数据库 时间:
2015-03-04 20:44:47
阅读次数:
163
Android Studio在新建工程的时候会在线同步更新Gradle,天朝子民多半会更新失败滴,并有如下报错:
gradle project sync failed android studio
Gradle Network is unreachable
因此,需要配离线的。
一 下载
官网地址:https://gradle.org/downloads
官网已被墙,即...
分类:
移动开发 时间:
2015-03-04 19:08:40
阅读次数:
139
通过原子计数可以在多线程情况下,对同一个数值进行加减操作,一般用于状态同步。先看代码:package main import "fmt"import "time"import "sync/atomic"import "runtime" func main() { // 定义一个整数var ops u...
分类:
其他好文 时间:
2015-03-04 12:23:43
阅读次数:
171
这里使用的mysql版本为5.6.23,并且配置的是全新的mysql主从复制(之前没有数据存在)1.配置mastervimy.cnf
log-bin=mysql-bin
server-id=1
innodb_flush_log_at_trx_commit=1
sync_binlog=1
servicemysqldrestart2.配置slavevimy.cnf
server-id=2
servicemysqldrestart3.在mas..
分类:
数据库 时间:
2015-03-03 18:50:02
阅读次数:
199
Preparations: 1,Frist of all , we need to register a account in https://github.com. 2, Secondly , create a repository by click the "ADD" icon besides your userName. Then , If we want to sync the ...
分类:
其他好文 时间:
2015-03-03 15:22:03
阅读次数:
342
swfit 中 objective-c 中的@syncronized 这个东西不能用了,应该用 objc_sync_enter(self) 代码 objc_sync_exit(self)代替!
分类:
其他好文 时间:
2015-03-03 11:20:00
阅读次数:
121