Firebird Database firebird作為一款優(yōu)秀的嵌入式(之一功能),用于桌面開發(fā)最合適不過了。之前也用過SQLITE做過一些小工具,但是在安全性方面表現(xiàn)不佳,而且不支持存儲(chǔ)過程等特性,經(jīng)過比較最終轉(zhuǎn)向firebird,整理了下常用的命令語句和SQL。 用戶管理 gsec
firebird作為一款優(yōu)秀的嵌入式(之一功能),用于桌面開發(fā)最合適不過了。之前也用過SQLITE做過一些小工具,但是在安全性方面表現(xiàn)不佳,而且不支持存儲(chǔ)過程等特性,經(jīng)過比較最終轉(zhuǎn)向firebird,整理了下常用的命令語句和SQL。
gsec -user sysdba -password masterkey modify SYSDBA -pw gtlions add gtlions -pw gtlions quit
isql create 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 gtlions isql gtlions.fdb -u gtlions -p 'G1!tlion' isql gtlions1.fdb -u gtlions -p gtlions
sudo launchctl unload /Library/LaunchDaemons/org.firebird.gds.plist sudo launchctl unload /System/Library/LaunchAgents/com.apple.bird.plist
vi script_for_remove_firebird.sh #!/bin/sh echo "Clean Services" echo "Clean User" dscl localhost -delete /Local/Default/Users/firebird echo "Clean Group" dscl localhost -delete /Local/Default/Groups/firebird if [ -f "/Library/StartupItems/Firebird" ]; then echo "Remove SuperServer StartupItem" rm -fr /Library/StartupItems/Firebird fi if [ -f "/Library/LaunchDaemons/org.firebird.gds.plist" ]; then echo "Remove Launchd" launchctl unload /Library/LaunchDaemons/org.firebird.gds.plist rm /Library/LaunchDaemons/org.firebird.gds.plist fi echo "Remove Framework" rm -fr /Library/Frameworks/Firebird.framework echo "Remove Receipt" rm -fr /Library/Receipts/Firebird*.pkg sudo launchctl unload /Library/LaunchDaemons/org.firebird.gds.plist
聲明:本網(wǎng)頁內(nèi)容旨在傳播知識(shí),若有侵權(quán)等問題請(qǐng)及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com