openstreetmap-website/db
2007-04-14 11:51:41 +00:00
..
migrate diary / user bits 2007-04-07 19:50:55 +00:00
create_database.sql beginning of osm on rails 2006-07-28 21:41:39 +00:00
migrate.sql various diary bits 2007-04-07 20:12:35 +00:00
README fixed typos 2007-04-14 11:51:41 +00:00

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

OSM server uses a database with the following name:

openstreetmap

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

$ mysqladmin -u <uid> -p create openstreetmap

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

Creating user, password, and access rights
============================================

$ mysql -u <uid> -p

(change <uid> with appropriate username of administrative 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 following command to prepare tables to be OSM RAILS distribution compatible:

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