Nur Aini Rakhmawati wrote:
> I would like to cerate debian package which needs to generate database.
> Suppose I create foo.sql that contains SQL syntaxes such as create table, insert etc ...
> and put those following lines in config file
> . /usr/share/dbconfig-common/dpkg/config
> dbc_go debian $@
> How could I execute foo.sql for generating tables ?
> So far I just create empty database.
you should install foo.sql as /usr/share/dbconfig-common/data/PACKAGE/install/DBTYPE
where DBTYPE is mysql in this case, and PACKAGE is the name of your package.
Hope this helps,
Niko Tyni firstname.lastname@example.org