Firebird使用入门
2012-12-23 15:55
295 查看
安装完成Firebird,其目录为“D:\Program Files\Firebird\Firebird_2_1”,简记为%FIREBIRD_HOME%,其bin目录下有两个文件gsec.exe(主要用于创建、删除数据库用户,修改用户密码)和.isql.exe(数据库相关操作):
使用命令行工具进入%FIREBIRD_HOME%\bin下,以数据库默认管理员SYSDBA运行gsec:
gsec -user SYSDBA -password masterkey
系统SYSDBA用户默认密码为masterkey,可使用命令修改:
modify SYSDBA -pw xxx
gsec常用命令如下:
di[splay] 显示所有用户
di[splay] <username> 显示某用户
a[dd] <username> -pw <password> [options] 新增用户
mo[dify] <username> [options] 修改用户
de[lete] <username> 刪除用户
h[elp] 帮助
? 同上
q[uit] 离开gsec
z 显示版本
[options]
-pa[ssword] <password> 管理者的密码
-user <username> 用户名
-pw <password> 用户密码
-fname <first name> 英文名字有,三個部份
-mname <middle name>
-lname <last name>
关于isql的使用如下:
附:java -Darguments(参数)的使用,写一测试类:
public class Test{
public static void main(String[] args){
System.out.println(System.getProperty('"myParam"));
// output:hello,world
}
}
使用命令行:
这样可省去给main函数传递参数,可通过语句
System.getProperties().list(System.out);查看哪些参数可以设置。
使用命令行工具进入%FIREBIRD_HOME%\bin下,以数据库默认管理员SYSDBA运行gsec:
gsec -user SYSDBA -password masterkey
系统SYSDBA用户默认密码为masterkey,可使用命令修改:
modify SYSDBA -pw xxx
gsec常用命令如下:
di[splay] 显示所有用户
di[splay] <username> 显示某用户
a[dd] <username> -pw <password> [options] 新增用户
mo[dify] <username> [options] 修改用户
de[lete] <username> 刪除用户
h[elp] 帮助
? 同上
q[uit] 离开gsec
z 显示版本
[options]
-pa[ssword] <password> 管理者的密码
-user <username> 用户名
-pw <password> 用户密码
-fname <first name> 英文名字有,三個部份
-mname <middle name>
-lname <last name>
关于isql的使用如下:
附:java -Darguments(参数)的使用,写一测试类:
public class Test{
public static void main(String[] args){
System.out.println(System.getProperty('"myParam"));
// output:hello,world
}
}
使用命令行:
这样可省去给main函数传递参数,可通过语句
System.getProperties().list(System.out);查看哪些参数可以设置。
相关文章推荐
- Android Gson使用入门及GsonFormat插件的使用
- PHP会话(Session)使用入门
- phonegap入门(二)-使用html5API存储信息到本地
- Spark2.1.0 + CarbonData1.0.0+hadoop2.7.2集群模式部署及使用入门
- crosswalk 快速入门使用
- CKplayer 新手入门超简单使用教程
- Postman 安装及使用入门教程
- (9) 使用Spring的注解方式实现AOP入门 以及 细节
- oc基础入门之block的使用
- JSP/SERVLET入门教程--Servlet 使用入门
- Elasticsearch.Net使用(一)【入门篇】
- Solr使用入门指南
- Keras入门课3 -- 使用CNN识别cifar10数据集
- Hololens入门之使用Custom Vision进行图片识别
- leveldb源码分析 之 入门使用
- github入门教程及日常使用操作命令
- FindBugs入门简介(eclipse安装使用实例)
- maven入门5-使用eclipse创建项目
- 使用 Swift 语言编写 Android 应用入门
- Java开发文档的使用与Hashcode的入门(老鸟勿进)