source: subversion/sites/rails_port/db/README @ 4525

Last change on this file since 4525 was 2820, checked in by nickb, 13 years ago

changed to migrations and updated readme

File size: 801 bytes
Line 
1Creating database
2===================
3
4OSM server uses a database with the following name:
5
6openstreetmap
7
8You 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
14Creating 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
25Creating database skeleton tables
26===================================
27
28Run this command from the root of your rails direcotry:
29
30$ rake db:migrate
31
32This will create the db for you
Note: See TracBrowser for help on using the repository browser.