openstreetmap-website/db
Dan Moore d07277efba API 0.4 Updates - work on traces pages + pagination, edit tab, some API testing
* traces - added some routes, replicated data access / pagination, but presentation and pending file control not complete
* edit - setup so that applet can be loaded + token authorisation enabled
* API - tests out ok against applet, but had to change segment-node associations
* misc - gems version required upgraded to 1.2.3 (latest stable rails version), changed some find_first to find(:first... calls
2007-03-23 23:13:19 +00:00
..
migrate add tags to gpx files 2006-12-06 17:10:59 +00:00
create_database.sql beginning of osm on rails 2006-07-28 21:41:39 +00:00
migrate.sql API 0.4 Updates - work on traces pages + pagination, edit tab, some API testing 2007-03-23 23:13:19 +00:00
README add docs from dpenezic@gmail.com 2006-11-23 12:32:15 +00:00

Creating database
=====================

OSM server use databse with follow name :

openstreetmap

You may create it with your prefrable client or run next (linux) command :

$ mysqladmin -u <uid> -p create openstreetmap

(change <uid> with appropriate username of administrativ user eg. root )

Creating user, password, and access rightts
=============================================

$ mysql -u <uid> -p

(change <uid> with appropriate username of administrativ user eg. root )

> grant all privileges on openstreetmap.* to 'openstreetmap'@'localhost' identified by 'openstreetmap';
> flush privileges;
> exit

Creating database skeleton tables
===================================

$ mysql openstreetmap -u openstreetmap -p < db/create_database.sql

New server patch (RAILS)
==========================

Run follow command to prepare tables to be OSM REILS distribution compatible :

$ mysql openstreetmap -u openstreetmap -p < db/migrate.sql