月度归档:2009年06月

dbexpress增加Firebird连接

修改 dbxconnections.ini。

增加内容:

[FBConnection]
DriverName=Firebird
Database=database.fb
RoleName=RoleName
User_Name=SYSDBA
Password=masterkey
ServerCharSet=
SQLDialect=1
ErrorResourceFile=
LocaleCode=0000
BlobSize=-1
CommitRetain=True
WaitOnLocks=True
Interbase TransIsolation=ReadCommited
Trim Char=False

修改 dbxdrivers.ini:

[Installed Drivers]
DB2=1
Firebird=1    
Interbase=1
MySQL=1
Oracle=1
Informix=1
MSSQL=1

增加内容:

[Firebird]
GetDriverFunc=getSQLDriverINTERBASE
LibraryName=dbexpint.dll
VendorLib=fbclient.dll
Database=database.gdb
RoleName=RoleName
User_Name=SYSDBA
Password=masterkey
ServerCharSet=
SQLDialect=1
BlobSize=-1
CommitRetain=True
WaitOnLocks=True
ErrorResourceFile=
LocaleCode=0000
Interbase TransIsolation=ReadCommited
Trim Char=False

[Firebird TransIsolation]
ReadCommited=1
RepeatableRead=2

寻找最快的debian源

安装apt-spy
apt-get install apt-spy
备份软件源
mv /etc/apt/sources.list /etc/apt/sources_bak.list
更新镜像列表
apt-spy update
寻找亚洲最快的源
apt-spy -d stable -t 10 -a Asia

BTW:堂堂的大中国,就没有一个长期稳定的源,呜呼哀哉