1grass-mesql(1)                Grass User's Manual               grass-mesql(1)
2
3
4
5MySQL embedded driver in GRASS
6

KEYWORDS

8       database, attribute table, driver
9

DESCRIPTION

11       MySQL database driver in GRASS enables GRASS to store vector attributes
12       in MySQL embedded database without necessity to run MySQL server.
13

Driver and database name

15       GRASS modules require 2 parameters to connect  to  a  database.   Those
16       parameters  are  ’driver’ and ’database’. For MySQL embedded driver the
17       parameter ’driver’ should be  set  to  value  ’mesql’.   The  parameter
18       ’database’  is  a  full path to the directory where database tables are
19       stored. The best place is a directory in the mapset. The directory must
20       be created before use of the driver. In the name of database it is pos‐
21       sible to use 3 variables:
22
23           ·   $GISDBASE - path to current GISBASE
24
25           ·   $LOCATION_NAME - name of current location
26
27           ·   $MAPSET - name of current mapset
28
29       Examples of connection parameters:
30       db.connect driver=mesql database=’$GISDBASE/$LOCATION_NAME/$MAPSET/mysql’
31       db.connect driver=mesql database=/home/user1/db
32

Data types, indexes

34       For more information about supported data types  and  indexes  see  the
35       documentation for MySQL (mysql) driver.
36

Database type

38       Because  database  closing  was found very slow if InnoDB was used, the
39       InnoDB storage is disabled by default (hardcoded ’--skip-innodb’ server
40       option).
41

Note

43       The  embedded  server is started with hardcoded ’--bootstrap’ option to
44       avoid warning about missing "mysql.time_zone_leap_second  table".  This
45       can be fixed in future.
46

Troubleshooting: SQL syntax error

48       Attempting  to  use  a  reserved  SQL word as column or table name will
49       result in a "SQL syntax" error. The list of reserved  words  for  MySQL
50       can be found in the MySQL manual.
51

SEE ALSO

53        db.connect, SQL support in GRASS GIS
54

Credits

56       Development  of the driver was sponsored by Faunalia (Italy) as part of
57       a project for ATAC.
58

AUTHOR

60       Radim Blazek
61
62       Last changed: $Date: 2014-04-20 12:09:22 +0200 (Sun, 20 Apr 2014) $
63
64       Main index - Database index - Topics index  -  Keywords  Index  -  Full
65       index
66
67       © 2003-2013 GRASS Development Team, GRASS GIS 7.0.svn Reference Manual
68
69
70
71GRASS 7.4.4                                                     grass-mesql(1)
Impressum