Unix Technical Forum

How dose a package create a database?

This is a discussion on How dose a package create a database? within the Debian Linux Users forum forums, part of the Debian Linux category; --> I am packaging an application that needs to create a database. By default it uses mysql. What is the ...


Go Back   Unix Technical Forum > Unix Operating Systems > Debian Linux > Debian Linux Users forum

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-04-2008, 07:56 PM
Adam Wakerhauser
 
Posts: n/a
Default How dose a package create a database?

I am packaging an application that needs to create a database. By default it uses mysql. What is the debian way of letting a package create a database and database user? Would I use "/etc/mysql/debian.cnf"?
I may have missed it in the documentation. I have been reading various tutorials, the _New Maintainers' Guide_ and the _Developer's Reference_ but not cover to cover yet. Could someone please recommend the appropriate reference?

Thankyou,
- Adam W.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 08-04-2008, 07:56 PM
Ron Johnson
 
Posts: n/a
Default Re: How dose a package create a database?

On 08/02/08 21:12, Adam Wakerhauser wrote:
> I am packaging an application that needs to create a database. By
> default it uses mysql. What is the debian way of letting a package
> create a database and database user? Would I use "/etc/mysql/debian.cnf"?
>
> I may have missed it in the documentation. I have been reading various
> tutorials, the _New Maintainers' Guide_ and the _Developer's Reference_
> but not cover to cover yet. Could someone please recommend the
> appropriate reference?


Probably in post-inst. I know that postgresql-8.3 creates a
database, so you might want to examine it, or it's source package.

--
Ron Johnson, Jr.
Jefferson LA USA

Scientists are people, too. IOW, they also "crave power, money,
respect, and influence, and they also fear for their jobs. Each
can be a healthy motivator, but each has the ability to turn a
good scientist into a bad one; and in some cases, they can turn
a good scientist into a charlatan."
http://thefutureofthings.com/book/3/...never-was.html


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-04-2008, 07:56 PM
Ansgar Burchardt
 
Posts: n/a
Default Re: How dose a package create a database?

Hi,

Adam Wakerhauser <adam.wakerhauser@gmail.com> writes:

> I am packaging an application that needs to create a database. By
> default it uses mysql. What is the debian way of letting a package
> create a database and database user? Would I use
> "/etc/mysql/debian.cnf"?


Take a look at dbconfig-common.

Regards,
Ansgar

--
PGP: 1024D/595FAD19 739E 2D09 0969 BEA9 9797 B055 DDB0 2FF7 595F AD19


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 08-04-2008, 07:56 PM
Adam Wakerhauser
 
Posts: n/a
Default Re: How dose a package create a database?

> Take a look at dbconfig-common.

Thankyou. This looks like what I need.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:01 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com