3. Getting Started
3 Getting Started
This section introduces Mnesia
with an example database. This example is referenced in the following sections, where the example is modified to illustrate various program constructs. This section illustrates the following mandatory procedures through examples:
- Starting the Erlang session.
- Specifying the
Mnesia
directory where the database is to be stored. - Initializing a new database schema with an attribute that specifies on which node, or nodes, that database is to operate.
- Starting
Mnesia
. - Creating and populating the database tables.
3.1 Starting Mnesia for the First Time
This section provides a simplified demonstration of a Mnesia
system startup. The dialogue from the Erlang shell is as follows:
登录查看完整内容