public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: kashani <kashani-list@badapple.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Good Library Management software
Date: Sun, 20 Jul 2008 09:29:52 -0700	[thread overview]
Message-ID: <48836800.2010206@badapple.net> (raw)
In-Reply-To: <79e3aefb0807170059y3a8f81ccqe6d6e9e61ac46b27@mail.gmail.com>

Dirk Uys wrote:
> Other than that there is also the added complexity to the
> installation. You have to create a user in the database, create the
> database and grant the user all the needed permission to that specific
> database.
> 
> And what if one app prefers mySQL and another one postgreSQL? Now I
> need to run two database servers that will be quite capable to fill
> the data needs of two small businesses just because I want to use a
> music player and a library utility for my ~50 books laying around.

	I can see your point and in many ways I agree. The issue is that local 
data storage limits the application in larger environments. A db 
provides a ready made and easily understandable way for multiple 
machines to read and write data. Being a large IT shop person I tend to 
avoid anything that does not use a db since it's unlikely that I will be 
able to use it at a job in the future. Nothing worse than having www07 
go down and take the company blog with it because we couldn't run the 
blog software on all ten machines because it had to use local storage. 
Additionally it's easier to backup one db cluster than twenty odd 
applications.

I can recommend a few things to make dealing with a db easier.

1. Settle on Mysql, 99% of anything you'll install can use it.
2. However apps that can use more than one database backened are 
*always* better written, more mature, and is usually a sign that the 
schema has been designed rather than tossing data in tables.
3. Don't mess with my.cnf unless you really need to. Default Mysql 
serving settings spec about 100MB of RAM usage which should be plenty 
for local apps with small storage needs.
4. Spend an hour learning about how your db works and come up with a 
system for user accounts and database names.

I always do something like this in Mysql:
create database kash_gallery2;
grant all privileges on kash_gallery2.* to kash_gallery2@localhost 
identified by 'mys3cr3tp2ss';

This way I know that only the kash_gallery2 user can access the 
kash_gallery2 db. I also know that kash_gallery2 is my Gallery install 
and not someone else's. I can easily add kash_gallery3 when a new 
version comes out and don't have to worry about how to deal with db 
'gallery' which I think is the default. You'll have to change the 
settings in the config file of the app to reflect your changes, but that 
should be simple.

kashani



  parent reply	other threads:[~2008-07-20 16:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-14 11:40 [gentoo-user] Good Library Management software Eric Martin
2008-07-14 12:06 ` CJoeB
2008-07-16 16:48   ` Eric Martin
2008-07-16 19:49   ` Stroller
2008-07-17  7:59     ` Dirk Uys
2008-07-17 12:31       ` Eric Martin
2008-07-17 18:48       ` Stroller
2008-07-20 16:29       ` kashani [this message]
2008-07-17 12:27     ` Eric Martin
2008-07-14 15:06 ` Joshua D Doll
2008-07-14 15:16   ` Aaron Clark

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48836800.2010206@badapple.net \
    --to=kashani-list@badapple.net \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox