]> git.openstreetmap.org Git - rails.git/blob - db/README
fixed user messaging stuff
[rails.git] / db / README
1 Creating database
2 ===================
3
4 OSM server uses a database with the following name:
5
6 openstreetmap
7
8 You may create it with your preferable client or run next (linux) command:
9
10 $ mysqladmin -u <uid> -p create openstreetmap
11
12 (change <uid> with appropriate username of administrative user eg. root )
13
14 Creating user, password, and access rights
15 ============================================
16
17 $ mysql -u <uid> -p
18
19 (change <uid> with appropriate username of administrative user eg. root )
20
21 > grant all privileges on openstreetmap.* to 'openstreetmap'@'localhost' identified by 'openstreetmap';
22 > flush privileges;
23 > exit
24
25 Creating database skeleton tables
26 ===================================
27
28 $ mysql openstreetmap -u openstreetmap -p < db/create_database.sql
29
30 New server patch (RAILS)
31 ==========================
32
33 Run following command to prepare tables to be OSM RAILS distribution compatible:
34
35 $ mysql openstreetmap -u openstreetmap -p < db/migrate.sql
36