Database names.

Events happening in the community are now at Drupal community events on www.drupal.org.
redpuma's picture

I've been using Aegir in my development VM which is now distributed to three other developers. While for us creates consistency when creating a new site/project I find the use of site_X for the database name causes some slowdown in work.

Is there an option to name the database when creating a new site?

Some times I need to go and look in a DB and having to SSH in and run "drush -l sitename status" or open the settings.php for that site to check the DB name is a distraction.

I'm aware that Aegir's intended purpose might not be that to which I'm using it in this case.

Comments

There is a ticket for this.

mig5's picture

There is a ticket for this. It has not yet been implemented, but it may be in the future.

Also see some comments in this ticket

That's good to hear. I

redpuma's picture

That's good to hear. I understand the comment about 16 characters might be an issue but being able to optionally insert some text would be useful. Some kind of project related abbreviation so you endup with "site_myabbrev_0" so it keeps the "site_" name space.

DB = Node #

j2parker's picture

As an alternate workaround to the ssh and settings.php methods you listed above, the db name is the same as the node number assigned when a site is created. Also, the platform name in vhost.d is assigned the same way.

On your aegir site, hosted sites page, if you mouse-over a site name the node number appears on the bottom of the screen (within firefox). Or simply click the site name and the node number will be in the address bar.

The db name will be appended if certain tasks are undertaken in aegir so site_334 can becomes site_334_0.

It has been my experience with 04-Alpha3 that imported sites do not have the node number assigned to the db.

Aegir hosting system

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: