grass-mesql.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <head>
  4. <title>GRASS-MySQL embedded driver</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  6. <link rel="stylesheet" href="grassdocs.css" type="text/css">
  7. </head>
  8. <body bgcolor="white">
  9. <img src="grass_logo.png" alt="GRASS logo"><hr align=center size=6 noshade>
  10. <!-- meta page description: MySQL embedded driver -->
  11. <h1>MySQL embedded driver in GRASS</h1>
  12. MySQL database driver in GRASS enables GRASS to store vector
  13. attributes in MySQL embedded database without necessity
  14. to run MySQL server.
  15. <h2>Driver and database name</h2>
  16. GRASS modules require 2 parameters to connect to a database.
  17. Those parameters are 'driver' and 'database'. For MySQL embedded
  18. driver the parameter 'driver' should be set to value 'mesql'.
  19. The parameter 'database' is a full path to the directory
  20. where database tables are stored. The best place is
  21. a directory in the mapset. The directory must be created
  22. before use of the driver. In the name of database
  23. it is possible to use 3 variables:
  24. <ul>
  25. <li> $GISDBASE - path to current GISBASE
  26. <li> $LOCATION_NAME - name of current location
  27. <li> $MAPSET - name of current mapset
  28. </ul>
  29. <p>
  30. Examples of connection parameters:
  31. <div class="code"><pre>
  32. db.connect driver=mesql database='$GISDBASE/$LOCATION_NAME/$MAPSET/mysql'
  33. db.connect driver=mesql database=/home/user1/db
  34. </pre></div>
  35. <h2>Data types, indexes</h2>
  36. For more information about supported data types and indexes
  37. see the documentation for <a href="grass-mysql.html">MySQL (mysql) driver</a>.
  38. <h2>Database type</h2>
  39. Because database closing was found very slow if InnoDB was used,
  40. the InnoDB storage is disabled by default (hardcoded
  41. '--skip-innodb' server option).
  42. <h2>Note</h2>
  43. The embedded server is started with hardcoded '--bootstrap'
  44. option to avoid warning about missing
  45. "mysql.time_zone_leap_second table". This can be fixed in future.
  46. <h2>SEE ALSO</h2>
  47. <em>
  48. <a href="db.connect.html">db.connect</a>,
  49. <a href="sql.html">SQL support in GRASS GIS</a>
  50. </em>
  51. <h2>Credits</h2>
  52. Development of the driver was sponsored by
  53. <a href="http://www.faunalia.it">Faunalia</a> (Italy)
  54. as part of a project for <a href="http://www.atac.roma.it/">ATAC</a>.
  55. <h2>AUTHOR</h2>
  56. Radim Blazek
  57. <p><i>Last changed: $Date$</i>
  58. <hr>
  59. <br>
  60. <a href="index.html">Main index</a> -
  61. <a href="database.html">database index</a> -
  62. <a href="full_index.html">full index</a>
  63. </body>
  64. </html>