4 OSM server uses a database with the following name:
8 You may create it with your preferable client or run next (linux) command:
10 $ mysqladmin -u <uid> -p create openstreetmap
12 (change <uid> with appropriate username of administrative user eg. root )
14 Creating user, password, and access rights
15 ============================================
19 (change <uid> with appropriate username of administrative user eg. root )
21 > grant all privileges on openstreetmap.* to 'openstreetmap'@'localhost' identified by 'openstreetmap';
28 Run this command in the db/functions directory:
32 Make sure the db/functions directory is on the MySQL server's library
33 path and restart the MySQL server. On linux the easiest way to do this
34 is to create /etc/ld.so.conf.d/osm.conf and place the path to the
35 db/functions directory in it and then run the following command as root:
39 Now create the functions as follows:
41 $ mysql -u <uid> -p openstreetmap
43 (change <uid> with appropriate username of administrative user eg. root )
45 > create function tile_for_point returns integer soname 'libquadtile.so';
48 Creating database skeleton tables
49 ===================================
51 Run this command from the root of your rails directory:
55 This will create the db for you