grass-mesql.html 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. <p>
  16. <h2>Driver and database name</h2>
  17. GRASS modules require 2 parameters to connect to a database.
  18. Those parameters are 'driver' and 'database'. For MySQL embedded
  19. driver the parameter 'driver' should be set to value 'mesql'.
  20. The parameter 'database' is a full path to the directory
  21. where database tables are stored. The best place is
  22. a directory in the mapset. The directory must be created
  23. before use of the driver. In the name of database
  24. it is possible to use 3 variables:
  25. <ul>
  26. <li> $GISDBASE - path to current GISBASE
  27. <li> $LOCATION_NAME - name of current location
  28. <li> $MAPSET - name of current mapset
  29. </ul>
  30. <p>
  31. Examples of connection parameters:
  32. <pre>
  33. db.connect driver=mesql database='$GISDBASE/$LOCATION_NAME/$MAPSET/mysql'
  34. db.connect driver=mesql database=/home/user1/db
  35. </pre>
  36. <h2>Data types, indexes</h2>
  37. For more information about supported data types and indexes
  38. see the documentation for
  39. <a href="grass-mysql.html">MySQL (mysql) driver</a>
  40. <h2>Database type</h2>
  41. Because database closing was found very slow if InnoDB was used,
  42. the InnoDB storage is disabled by default (hardcoded
  43. '--skip-innodb' server option).
  44. <h2>Note</h2>
  45. The embedded server is started with hardcoded '--bootstrap'
  46. option to avoid warning about missing
  47. mysql.time_zone_leap_second table. This can be fixed in future.
  48. <h2>SEE ALSO</h2>
  49. <em>
  50. <a href="db.connect.html">db.connect</a>,
  51. <a href="sql.html">SQL support in GRASS GIS</a></em>
  52. <h2>Credits</h2>
  53. Development of the driver was sponsored by
  54. <a href="http://www.faunalia.it">Faunalia</a> (Italy)
  55. as part of a project for <a href="http://www.atac.roma.it/">ATAC</a>.
  56. <h2>AUTHOR</h2>
  57. Radim Blazek
  58. <p><i>Last changed: $Date$</i>
  59. <HR>
  60. <br><a href=index.html>Help Index</a>
  61. </body>
  62. </html>