~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/create_schema.rst

  • Committer: Daniel Nichter
  • Date: 2011-10-23 16:01:37 UTC
  • mto: This revision was merged to the branch mainline in revision 2448.
  • Revision ID: daniel@percona.com-20111023160137-7ac3blgz8z4tf8za
Add Administration Getting Started and Logging.  Capitalize SQL clause keywords.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
CREATE SCHEMA
 
2
==============
 
3
 
 
4
CREATE SCHEMA enters a new schema into the current database. The schema name used must be distinct from the name of any existing schema.
 
5
 
 
6
.. code-block:: mysql
 
7
 
 
8
   CREATE SCHEMA [IF NOT EXISTS] schema_name
 
9
     [engine_options] ...
 
10
 
 
11
engine_options
 
12
--------------
 
13
 
 
14
You can specify the storage engine to use for creating the schema. Please note, there is currently only one engine.
 
15
 
 
16
::
 
17
 
 
18
    engine_option [[,] engine_option] ...
 
19
 
 
20
collate
 
21
-------
 
22
 
 
23
There are default settings for character sets and collations at four levels: server, database, table, and column. The COLLATE clause specifies the default database collation.
 
24
 
 
25
::
 
26
 
 
27
  [DEFAULT] COLLATE = collation_name
 
28
  { engine_specific }
 
29
 
 
30
 
 
31
REPLICATE
 
32
---------
 
33
 
 
34
Specify whether or not a SCHEMA should be replicated.
 
35
 
 
36
::
 
37
 
 
38
  REPLICATE=[TRUE|FALSE]