学习关系型数据库:在Ubuntu和FreeBSD下安装firebird

Firebird是一种关系型数据库管理系统,它使用SQL(结构化查询语言)进行数据操作。与许多其他数据库系统相比,Firebird以其卓越的性能、稳定性和可扩展性而著称。

在Ubuntu下安装firebird

在Linux下使用apt search查找firebird,看到很多相关软件包:

复制代码
apt search firebird
Sorting... Done
Full Text Search... Done
centreon-plugins/jammy 0.0~20220113-1 all
  Collection of Nagios plugins to monitor OS, services and network devices

firebird-dev/jammy 3.0.8.33535.ds4-1ubuntu2 amd64
  Development files for Firebird

firebird3.0-common/jammy 3.0.8.33535.ds4-1ubuntu2 all
  common files for firebird 3.0 server, client and utilities

firebird3.0-common-doc/jammy 3.0.8.33535.ds4-1ubuntu2 all
  copyright, licensing and changelogs of firebird3.0

firebird3.0-doc/jammy 3.0.8.33535.ds4-1ubuntu2 all
  Documentation files for firebird database version 3.0

firebird3.0-examples/jammy 3.0.8.33535.ds4-1ubuntu2 all
  Examples for Firebird database

firebird3.0-server/jammy 3.0.8.33535.ds4-1ubuntu2 amd64
  Firebird Server - an RDBMS based on InterBase 6.0 code

firebird3.0-server-core/jammy 3.0.8.33535.ds4-1ubuntu2 amd64
  Firebird engine core

firebird3.0-utils/jammy 3.0.8.33535.ds4-1ubuntu2 amd64
  Firebird command line utilities

使用apt install 安装firebird

复制代码
sudo apt install firebird-dev firebird3.0-server firebird3.0-examples

或者

复制代码
apt install firebird-dev firebird3.0-server firebird3.0-examples

GRUB选项

安装过程中有如下选择项:

Continue without installing GRUB? [yes/no]

感觉有点奇怪,怎么跟grub关联的? 选yes

提示密码

Firebird有一个名为SYSDBA的特殊用户,该用户

可以访问所有数据库。SYSDBA还可以创建新的数据库

以及用户。因此,有必要使用密码。

密码存储在/etc/firebird/3.0/SYSDBA.password中

(只能由root读取)。你可以在那里修改它(别忘了

也可以使用gsec实用程序更新安全数据库),或者

可以使用dpkg重新配置来更新两者。

如果你不输入密码,将使用随机密码(和

存储在SYSDBA.password中)。

设好密码,安装完成。

有些版本firebird的默认密码是masterkey

启动服务

复制代码
service firebird3.0 start
 * Starting Firebird 3.0 server...                          [ OK ] 

在FreeBSD下安装firebird

复制代码
pkg update
pkg install firebird30-client firebird30-server

FreeBSD下安装还是挺方便的,完成后的提示:

复制代码
Firebird 3 was installed.

1) Before start the server ensure that the following line exists in /etc/services:

gds_db		3050/tcp  #InterBase Database Remote Protocol

2) If you use inetd (Classic Server) then add the following line to /etc/inetd.conf

gds_db  stream  tcp     nowait  firebird        /usr/local/sbin/firebird  firebird

And finally restart inetd.

3) If you want to use change firebird modes then you must modify the ServerMode
   variable into /usr/local/etc/firebird/firebird.conf file.

 ServerMode="Super"
 # ServerMode="SuperClassic"
 # ServerMode="Classic"

4) It is STRONGLY recommended that you change the SYSDBA
password with:

 # gsec -user SYSDBA -pass masterkey
 GSEC> modify SYSDBA -pw newpassword
 GSEC> quit

before doing anything serious with Firebird.

5) See documentation in /usr/local/share/doc/firebird/ for more information.

6) Some firebird tools were renamed for avoid conflicts with some other ports

	/usr/local/bin/isql	-> 	/usr/local/bin/isql-fb
	/usr/local/bin/gstat	->	/usr/local/bin/fbstat
	/usr/local/bin/gsplit	->	/usr/local/bin/fbsplit

6) Enjoy it ;)

总体感觉FreeBSD下比较靠谱。

相关推荐
正在走向自律5 分钟前
电科金仓KingbaseES数据库全面语法解析与应用实践
数据库·国产数据库·kingbasees·数据定义语言ddl·数据操作语言dml·kingbasees语法
web安全工具库14 分钟前
Linux进程的:深入理解子进程回收与僵尸进程
java·linux·数据库
麦聪聊数据22 分钟前
大数据与云原生数据库中的 SQL2API:优化跨平台数据访问与查询
数据库·sql·云原生
虚伪的空想家32 分钟前
记录次etcd故障,fatal error: bus error
服务器·数据库·k8s·etcd
笨手笨脚の42 分钟前
Mysql 的锁机制
数据库·mysql··死锁·间隙锁
老友@1 小时前
一次由 PageHelper 分页污染引发的 Bug 排查实录
java·数据库·bug·mybatis·pagehelper·分页污染
hzk的学习笔记1 小时前
Redisson解锁失败,watchdog会不会一直续期下去?
数据库·redis·缓存
合作小小程序员小小店1 小时前
web网页开发,在线%商城,电商,商品购买%系统demo,基于vscode,apache,html,css,jquery,php,mysql数据库
开发语言·前端·数据库·mysql·html·php·电商
TDengine (老段)2 小时前
TDengine 字符串函数 CONCAT 用户手册
java·数据库·tdengine
一 乐2 小时前
旅游|内蒙古景点旅游|基于Springboot+Vue的内蒙古景点旅游管理系统设计与实现(源码+数据库+文档)
开发语言·前端·数据库·vue.js·spring boot·后端·旅游