| 102 | | part of the **model** of our application (find more in the [model chapter](http://www.symfony-project.com/book/1.1/08-Inside-the-Model-Layer)). |
|---|
| | 100 | part of the **model** of our application |
|---|
| | 101 | (find more in the [model chapter](http://www.symfony-project.com/book/1.1/08-Inside-the-Model-Layer)). |
|---|
| | 102 | |
|---|
| | 103 | Now, we need to convert the schema to SQL statements to initialize the database tables. |
|---|
| | 104 | By default, the symfony sandbox is configured to work out of the box with a simple |
|---|
| | 105 | SQLite file, so no database initialization is required. |
|---|
| | 106 | You still need to check that the SQLite extension is installed and enabled correctly |
|---|
| | 107 | (you can check this in `php.ini` - see how |
|---|
| | 108 | [in the PHP documentation](http://fr3.php.net/manual/en/ref.sqlite.php)). |
|---|
| | 109 | |
|---|
| | 110 | By default, the `sf_sandbox` project will use a database file called `sandbox.db` |
|---|
| | 111 | located in `sf_sandbox/data/`. |
|---|
| | 112 | |
|---|
| | 113 | If you want to switch to MySQL for this project, just type the following command line: |
|---|
| | 114 | |
|---|
| | 115 | $ php symfony configure:database mysql://root:pa$$word/localhost/symfony_project |
|---|
| | 116 | |
|---|
| | 117 | Change the DSN argument to match your settings (username, password, host, and database name) |
|---|
| | 118 | and then create the database with the command line or a web interface (as described in |
|---|
| | 119 | the [model chapter](http://www.symfony-project.com/book/1.1/08-Inside-the-Model-Layer)). |
|---|
| 110 | | the same table structure. You could create a database in MySQL with the command |
|---|
| 111 | | line or a web interface (as described in the |
|---|
| 112 | | [model chapter](http://www.symfony-project.com/book/1.1/08-Inside-the-Model-Layer)). |
|---|
| 113 | | Luckily, the symfony sandbox is configured to work out of the box with a simple |
|---|
| 114 | | SQLite file, so no database initialization is required. By default, the `sf_sandbox` |
|---|
| 115 | | project will use a database called `sandbox.db` located in `sf_sandbox/data/`. |
|---|
| | 127 | the same table structure. |
|---|
| | 128 | |
|---|