openstreetmap-website/db
2007-09-11 23:55:25 +00:00
..
functions QuadTile infrastructure. 2007-09-11 23:55:25 +00:00
migrate Various updates to the user management, including the creation of a 2007-08-14 23:07:38 +00:00
MAKE_MIGRATIONS_AND_TEST_THEM_DONT_PUT_SQL_HERE_ANY_MORE add a big fat warning 2007-05-06 10:22:39 +00:00
README changed to migrations and updated readme 2007-05-07 15:22:15 +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
===================================

Run this command from the root of your rails direcotry:

$ rake db:migrate

This will create the db for you