mysql.rst 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. .. _data_mysql:
  2. MySQL
  3. =====
  4. .. note:: GeoServer does not come built-in with support for MySQL; it must be installed through an extension. Proceed to :ref:`mysql_install` for installation details.
  5. .. warning:: Currently the MySQL extension is unmaintained and carries unsupported status. While still usable, do not expect the same reliability as with other extensions.
  6. `MySQL <http://www.mysql.com>`_ is an open source relational database with some limited spatial functionality.
  7. .. _mysql_install:
  8. Installing the MySQL extension
  9. ------------------------------
  10. #. Visit the :website:`website download <download>` page, locate your release, and download: :download_extension:`mysql`
  11. .. warning:: Ensure to match plugin (example |release| above) version to the version of the GeoServer instance.
  12. #. Extract the contents of the archive into the :file:`WEB-INF/lib` directory of the GeoServer installation.
  13. Adding a MySQL database
  14. -----------------------
  15. Once the extension is properly installed ``MySQL`` will show up as an option when creating a new data store.
  16. .. figure:: images/mysqlcreate.png
  17. :align: center
  18. *MySQL in the list of data sources*
  19. Configuring a MySQL data store
  20. ------------------------------
  21. .. figure:: images/mysqlconfigure.png
  22. :align: center
  23. *Configuring a MySQL data store*
  24. .. list-table::
  25. :widths: 20 80
  26. * - ``host``
  27. - The mysql server host name or ip address.
  28. * - ``port``
  29. - The port on which the mysql server is accepting connections.
  30. * - ``database``
  31. - The name of the database to connect to. Can also contain a suffix with a connection URL query, such as `mydbname?useSSL=false`
  32. * - ``user``
  33. - The name of the user to connect to the mysql database as.
  34. * - ``password``
  35. - The password to use when connecting to the database. Left blank for no
  36. password.
  37. * - ``max connections`` ``min connections`` ``validate connections``
  38. - Connection pool configuration parameters. See the
  39. :ref:`connection_pooling` section for details.