@@ -80,31 +80,31 @@ information. By convention, this information is usually configured in an
80
80
more information, see :doc: `/cookbook/configuration/external_parameters `.
81
81
82
82
.. sidebar :: Setting Up The Database
83
-
83
+
84
84
One mistake even seasoned developers make when starting a Symfony2 project
85
85
is forgetting to setup default charset and collation on their database,
86
86
ending up with latin type collations, which are default for most databases.
87
87
They might even remember to do it the very first time, but forget that
88
88
it's all gone after running a relatively common command during development:
89
-
89
+
90
90
.. code-block :: bash
91
-
91
+
92
92
$ app/console doctrine:database:drop --force
93
93
$ app/console doctrine:database:create
94
-
95
- There's no way to configure these defaults inside doctrine , as it tries to be
96
- as agnostic as possible in terms of enviroment configuration. One way to solve
97
- this problem is to configure server level defaults.
98
-
99
- Setting UTF8 defaults for MySQL is as simple as adding a few lines to configuration file
100
- (typically ``my.cnf ``):
101
-
94
+
95
+ There's no way to configure these defaults inside Doctrine , as it tries to be
96
+ as agnostic as possible in terms of environment configuration. One way to solve
97
+ this problem is to configure server- level defaults.
98
+
99
+ Setting UTF8 defaults for MySQL is as simple as adding a few lines to
100
+ your configuration file (typically ``my.cnf ``):
101
+
102
102
.. code-block :: ini
103
103
104
104
[mysqld]
105
105
collation-server = utf8_general_ci
106
106
character-set-server = utf8
107
-
107
+
108
108
Now that Doctrine knows about your database, you can have it create the database
109
109
for you:
110
110
0 commit comments