datadir should be more sensible
Bug #366371 reported by
Selena Deckelmann
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Drizzle |
Fix Released
|
Wishlist
|
Monty Taylor | ||
7.0 |
Fix Released
|
Wishlist
|
Monty Taylor | ||
Cherry |
Won't Fix
|
Wishlist
|
Monty Taylor |
Bug Description
I'd love to be able to do this and have drizzle start properly as a non-root user:
./drizzled --datadir=data
/usr/local/var is not a nice default location for database files. Let's be nicer to sysadmins :)
In the event that a configuration file does not exist, it would be nice if drizzle did the following:
* By default search for the data directory in the current working directory and refuse to start if that directory does not exist and it cannot create the default directory
SUGGESTION: define the default name of the data directory ("data" or "drizzle" seems sane :)
description: | updated |
description: | updated |
summary: |
- Sane installation defaults without a config file + datadir should be more sensible |
Changed in drizzle: | |
importance: | Undecided → Wishlist |
milestone: | none → low-hanging-fruit |
status: | New → Confirmed |
Changed in drizzle: | |
milestone: | bell → low-hanging-fruit |
Changed in drizzle: | |
milestone: | low-hanging-fruit → 2010-04-26 |
To post a comment you must log in.
Assuming the directory exists, this works as a non-root user for me when built from trunk (see below). So the main issue here is that you'd like to see drizzled create the data dir if it does not exist, right?
---snip---
jzawodn@ wks-jeremy: ~/src/drizzle/ trunk$ mkdir /tmp/drizzle2 ; ./drizzled/drizzled --datadir /tmp/drizzle2 drizzled: ready for connections.
InnoDB: The InnoDB memory heap is disabled
InnoDB: Mutexes and rw_locks use GCC atomic builtins.
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
090424 14:10:59 InnoDB: Setting file ./ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
090424 14:10:59 InnoDB: Log file ./ib_logfile0 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
090424 14:10:59 InnoDB: Log file ./ib_logfile1 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
090424 14:11:00 InnoDB Plugin 1.0.3 started; log sequence number 0
./drizzled/
Version: '2009.04.997-trunk' socket: '' port: 4427 Source distribution