FirebirdDatabaseOnMacOSX
Firebird Database firebird作为一款出色的/卓越的/优异的/杰出的的嵌入式(之一功能),用于桌面开发最合适不过了。之前也用过sqlite做过一些小工具,但是在安全性方面表现不佳,而且不支持存储过程等特性,经过比较最终转向firebird,整理了下常用的命令语句和sql。 用户管理 gsec
Firebird Database
firebird作为一款出色的/卓越的/优异的/杰出的的嵌入式(之一功能),用于桌面开发最合适不过了。之前也用过sqlite做过一些小工具,但是在安全性方面表现不佳,而且不支持存储过程等特性,经过比较最终转向firebird,整理了下常用的命令语句和sql。
用户管理
gsec -user sysdba -password masterkeymodify SYSDBA -pw gtlionsadd gtlions -pw gtlionsquit登录后复制
创建数据库
isqlcreate database 'gtlions.fdb' user 'SYSDBA' password 'gtlions' default character set UTF8;create database 'gtlions1.fdb' user 'gtlions' password 'G1!tlion' default character set GBK;exit;登录后复制
连接数据库
isql gtlions.fdb -user sysdba -password gtlionsisql gtlions.fdb -u gtlions -p 'G1!tlion'isql gtlions1.fdb -u gtlions -p gtlions登录后复制
安装完成后的配置,禁止启动
sudo launchctl unload /Library/LaunchDaemons/org.firebird.gds.plistsudo launchctl unload /System/Library/LaunchAgents/com.apple.bird.plist登录后复制
卸载脚本
vi script_for_remove_firebird.sh#!/bin/shecho "Clean Services"echo "Clean User"dscl localhost -delete /Local/Default/Users/firebirdecho "Clean Group"dscl localhost -delete /Local/Default/Groups/firebirdif [ -f "/Library/StartupItems/Firebird" ]; thenecho "Remove SuperServer StartupItem"rm -fr /Library/StartupItems/Firebirdfiif [ -f "/Library/LaunchDaemons/org.firebird.gds.plist" ]; thenecho "Remove Launchd"launchctl unload /Library/LaunchDaemons/org.firebird.gds.plistrm /Library/LaunchDaemons/org.firebird.gds.plistfiecho "Remove Framework"rm -fr /Library/Frameworks/Firebird.frameworkecho "Remove Receipt"rm -fr /Library/Receipts/Firebird*.pkgsudo launchctl unload /Library/LaunchDaemons/org.firebird.gds.plist登录后复制