当前位置: 首页 > article >正文

学习关系型数据库:在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下比较靠谱。


http://www.kler.cn/news/292643.html

相关文章:

  • LLM 进化分岔口:多模态、成本、代码推理
  • Qt获取当前系统时间、系统时间戳
  • 开源链动 2+1 模式 AI 智能名片 O2O 商城小程序在直播电商时代的崛起
  • mysqlclient 1.4.3 or newer is required; you have 1.0.3
  • 2024年全国大学生数学建模比赛思路、题目、代码
  • 14、Django Admin的“Action(动作)”中添加额外操作
  • 数据结构-双链表-详解
  • PrimeTime low power-SMVA分析(2)
  • 力扣343-整数拆分(Java详细题解)
  • QNN:基于QNN+example重构之后的yolov8det部署
  • 经验笔记:NoSQL数据库及其缓存方法实践
  • 什么是单片机?为什么要学习单片机?
  • 【文献及模型、制图分享】县域城乡融合发展对乡村旅游地实现共同富裕的影响机制——以长三角地区60个典型县为例
  • Qt/QML学习-CircularGauge
  • Python函数的编写
  • 上海市计算机学会竞赛平台2024年8月月赛丙组调和级数
  • CMU 10423 Generative AI:HW0
  • 【计算机网络】socket编程 几个网络命令
  • 【机器学习】Boosting与Bagging算法
  • 哈希扩展(位图与布隆过滤器)
  • React基础教程(09):react的属性介绍(props)
  • 万界星空科技MES:企业实现数字化转型的护航者
  • SpringCloud之CircuitBreaker
  • 江协科技stm32————10-5 硬件I2C读写MPU6050
  • 宝扬笔记本电脑重做win10系统教程
  • 2024国赛数学建模C题完整论文:农作物的种植策略
  • 智 能 合 约
  • 【css】获取最后一个li进行样式特殊处理
  • 企微获客链接 中文乱码问题处理
  • 高德地图根据经纬度获取详细地址