database for bandwidthd-pgsql not defined

Asked by fkruis on 2011-09-12

Hello, I tried to install bandwidthd-pgsql and get some data out. After 2 days working on it I finally managed to get bandwidthd to connect to the posgresql database only to find out that the database schema I had found online because it is nowhewre inthe release has not the same fields as bandwidthd expects. Searching thru the net did not give me any meaningful results. As far as I can see this package is not working without the database and the basic bandwidthd is not what I want. Is there anywhere anybody that knows the database schema used? Please
Frits

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu bandwidthd Edit question
Assignee:
No assignee Edit question
Solved by:
fkruis
Solved:
2011-09-12
Last query:
2011-09-12
Last reply:
fkruis (fkruis) said : #1

I knew as soon as I ask the question I find the answer myself. I downloaded the source code and found where the error came from and then found that psql.c contains code to set up the database tables if they don't exist! How nice.
You have to give it a database to connect with and if its empty it sets it up. It might actually create the whole database if it not exists.
I did not try that because I got it working now and want to go to bed.