[MDEV-5332] Per-database options Created: 2013-11-25 Updated: 2015-10-30 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor |
| Reporter: | Alexander Barkov | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 4 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
MySQL/MariaDB uses the file DATADIR/dbname/db.opt to store
Almost all system variables that can have both global and session Some useful examples:
Some global-only variables could also possibly be set per-database:
|
| Comments |
| Comment by Sergei Golubchik [ 2014-04-21 ] | |||||||
|
Let's distinguish between table attributes that can be set per database and session variables. Table attributes, like ENGINE or CHARACTER SET or CHECKSUM. When it's set on a database, it means that all tables, created in this database, get this. For example,
this means that t1 table will use myisam storage engine and will have checksums enabled. On the other hand, system variables set per database merely set session variable values based on the current database. For example,
These are two different functionalities, I'm not sure that we want both or that we want to mix both in one "per database options" feature. |