• FireBird初使用


    昨天使用FireBire能够连接上,但是今天就是不行,查了很多(中文)资料都不行(英文太差),然后后面没有办法,就去看FireBird的安装后的PDF文件QucikStart.pdf,然后发现李这段话:  

    On Windows server platforms – NT, 2000/3/8, XP, Vista and 7 – Firebird will run as a system service by default,
    but during the installation you can also choose to let it run as an application. Non-server Windows systems –
    95, 98 and ME – don't support services; running as an application is the only option there.
     Non-server Windows systems –95, 98 and ME – don't support services; 这句话说明FireBird跟Interbase一样还有服务的,然后就查看FireBird的服务,果然,现在已经启动,然后就开始登陆.(这个跟Firebird的前身interbase是一样的)

    登陆方式:
    直接用isql:connect "C:dbFBDB" user sysdba password masterkey;FireBird是有数据库别名设置,在安装没目录下的aliases.conf配置文件中直接设置,需要注意的是按照事例格式来,不要添油加醋;所以我就可以省略为:
      connect "FBDB" user sysdba password masterkey;
    别名不区分大小写
    ,连接成功后的显示是:
    SQL> connect "C:dbEMPLOYEE.FDB" user sysdba password masterkey;
    Server version:
    WI-V2.5.3.26780 Firebird 2.5
    WI-V2.5.3.26780 Firebird 2.5/XNet (ZHAO)/P12
    WI-V2.5.3.26780 Firebird 2.5/XNet (ZHAO)/P12
    Database:  "C:dbEMPLOYEE.FDB", User: sysdba
    SQL>

     使用cmd登陆(我在path上添加了bin路径,安装前添加的,不知道安装后会不会默认添加):

    system32>isql -u sysdba -p masterkey; --这里是使用isql工具登陆,-u,-p是参数,更多参数给你查询:isql -?
    SQL> connect "fbdb"
    Database:"f
    bdb", User : sysdba;
    SQL>show table; --查看当前库的所有表

    然后更改用户密码:使用的工具是gsec,相关帮助查询:gsec -?(cmd dos环境下)
    相关方式参考资料:http://www.cnblogs.com/yokoboy/archive/2013/05/05/3060826.html


    
    


  • 相关阅读:
    pinpoint改造支持查询
    pinpoint本地开发——agent
    pinpoint本地开发——collector
    pinpoint本地开发-web模块
    第一个Vert.x程序
    ls bash: cannot create temp file for here-document: No space left on device
    hadoop磁盘空间不均衡的解决办法
    dubbo监控活跃线程数
    mac安装软件运行提示「xxx.app已损坏,打不开.你应该将它移到废纸篓」的解决办法
    python拆分excel脚本
  • 原文地址:https://www.cnblogs.com/ufindme/p/4384513.html
Copyright © 2020-2023  润新知