Tag: freebsd
The Perfect Database Server: Firebird 2.5.3 And FreeBSD 10
Here is the guide on installing Firebird 2.5.3 from FreeBSD 10 Ports and
creating your first test database; also we show you how to install
Flamerobin GUI (administration tool) and the PHP driver for it. This was tested on fresh FreeBSD 10 on a kvm-linux virtual machine.
Download a compressed snapshot of the Ports Collection into /var/db/portsnap.
# portsnap fetch
Or update it.
If you are running Portsnap for the first time, extract the snapshot into /usr/ports:
# portsnap extract
If you already have a populated /usr/ports directory and you are just updating, run the following command instead:
# portsnap update
Enter firebird server ports directory:
# cd /usr/ports/databases/firebird25-server
Compile and install firebird server:
# make -DPACKAGE_BUILDING
# make install
Enable it by adding
firebird_enable="YES"
in
/etc/rc.conf.
Start it with:
# /usr/local/etc/rc.d/firebird start
logs and security2.fdb seems to be in /var/db/firebird.
# /usr/local/bin/isql-fb
To create a new database:
SQL> create database “tmp/first_database.fdb”;
SQL> connect “/tmp/first_database.fdb” ;
Commit current transaction (y/n)? <– y
Committing.
Database: “/tmp/first_database.fdb”
SQL>
If you want to create a simple table then insert 1-2 rows and select from it; here is one example:
SQL> CREATE TABLE TEST (ID INT NOT NULL PRIMARY KEY, NAME VARCHAR(20));
SQL> show tables;
TEST
SQL> INSERT INTO TEST VALUES (1, ‘John’);
SQL> INSERT INTO TEST VALUES (2, ‘Joe’);
SQL> select * from test;
ID NAME
============ ====================
1 John
2 Joe
To quit the isql-fb console, type quit:
SQL> quit
CON>;
For a good open source GUI admin tool you might check the flamerobin administration tool included in ports repository; it can be installed by a simple:
# cd /usr/ports/databases/flamerobin/ && make install clean
Or if you don’t want to wait use pkg-add
# pkg-add -r flamerobin
To use firebird with php, you will need the php5 driver:
# cd /usr/ports/databases/php5-interbase/ && make install clean
You can choose to compile php with apache support (I have chosen cli, cgi , and apache support);
check it if is enabled with:
# /usr/local/bin/php -m
Or if you don’t want to wait compile all the php use pkg-add
# pkg-add -r php5-interbase
The Perfect Database Server : Firebird 2.5 and FreeBSD 8.1
Here is the guide on installing Firebird 2.5 from FreeBSD 8.1 Ports and creating your first test database also we show you howto install Flamerobin GUI (administation tool) and the PHP driver for it .
This was tested on fresh freebsd 8.1 on a virtual machine
#Freebsd Port requests for Firebird 2.1.x
Posted by: hangover
Created PR with ports for server and client.
server (http://www.freebsd.org/cgi/query-pr.cgi?pr=152402)
client (http://www.freebsd.org/cgi/query-pr.cgi?pr=152403)
Successfully compiles on 7.1, 7.3, 8.0, 8.1 – i386 and amd64.
Hope, it will be added to ports tree..
Firebird 2.1.x Compiling instructions on #Freebsd 8.1 – #AMD64 / x86-64
If you wonder how Firebird 2.1.3 stable can be compiled on Freebsd 8.1 wonder no more , Here is the thread with patches and instructions needed .
He does have some nice tutorials on the website with Freepascal and extJS
Good news for #Debian #kFreeBSD and #FreeBSD
Prism9’s HelixGL Accounting System – powered by Firebird
Nigel Weeks wrote on his blog
A little project I’ve been quietly working on for a few years. This web-deployed accounting system is powered by FreeBSD, Apache, PHP, and the Firebird Database.
It runs brilliantly on Windows and Linux as well.
Compile UDF-library rfunc for Firebird 2.0.3 on FreeBSD
There was no good documentation [how to do it] but in fact was realy easy.
Using Firebird in Freebsd
Win32 Lazarus/Firebird embedded runs on PCBSD! with wine
I was very surprised realizing that my Win 32 Lazarus+Firebird embedded application can be installed and running on PCBSD (www.pcbsd.org) OS under Wine. Although I couldn’t install Win32 Firebird server, it seems that embedded server (consists of .dll files) works OK! One more option for multiplatform pograming…
Regards,Zlatko