昨天使用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:"fbdb", User : sysdba;
SQL>show table; --查看当前库的所有表
然后更改用户密码:使用的工具是gsec,相关帮助查询:gsec -?(cmd dos环境下)
相关方式参考资料:http://www.cnblogs.com/yokoboy/archive/2013/05/05/3060826.html