公式サイト
http://www.firebirdsql.org/
Wine環境から
CSネイティブ/Embedded/ODBC接続ともなんら問題なく使えています。
とはいえ個人サーバとして利用したい場面も結構あります。
簡単インストールなので以下報告します。
1. Firebirdユーザ/グループ作成
install.sh内でユーザ/グループを使うため事前に作成します。
1) firebirdユーザ/グループの作成
コード: 全て選択
# adduser -G root -h /root/firebird firebird
Changing password for firebird
New password:(パスワード)
Retype password:(パスワード)
Password for firebird changed by root
# addgroup firebird
/etc/passwd
コード: 全て選択
firebird:x:0:0:Linux User,,,:/root/firebird:/bin/sh
* passwd変更後、再起動が必要です
2. ダウンロード
軽量&Unicode4.0サポートなV2.0.5 SS(SuperServer:スレッドモデル)
FirebirdSS-2.0.5.13206-0.i686.tar.gz
http://www.firebirdsql.org/index.php?op ... engine_205
3. インストール
PupZipで展開後,install終了でDBAユーザのpasswordを入力します。
# ./install.sh
...
Starting Firebird server:...
Please enter new password for SYSDBA user : (passwordを入力)
4. 動作確認
1)PProcessで以下のプロセスを確認
firebird xxxx S /opt/firebird/bin/fbguard -f
firebird xxxx S /opt/firebird/bin/fbserver
2)TCPポート確認
netstatでポート確認します. gds_dbはポート:3050です。
> netstat -l | grep gds
Active Internet connection
tcp 0 0 *:gds_db
3)データベース接続確認
SQL会話ツールisqlでalias.conf内別名:employeeで接続します。
# cd /opt/firebird/bin/isql
SQL> connect employee user 'SYSDBA' password 'password';
SQL>SHOW DATABASE;
Database: employee
..
..
他ネットワークPCからは 'ip-address:employee'で接続します。
メモ:
- プロセス開始
# /etc/init.d/firebird start
- Firewall
利用する場合はFirebird標準ポート(3050/tcp)を有効にする。
etc/hosts.allowの変更は不要。
- シャットダウン
Ex. 10秒後にシャットダウン
/opt/firebird/bin/gfix -shut -at 10 'Server:DatabaseName'