Open source spatially-enabled databases
If you wish to use an open source database for your geospatial development work, you currently have three main options: MySQL, PostGIS and SpatiaLite. Each has its own advantages and disadvantages, and no one database is the ideal choice in every situation. Let's take a closer look at each of these spatially-enabled databases.
MySQL
MySQL is the world's most popular open source database, and is generally an extremely capable database. It is also spatially-enabled, though with some limitations, which we will get to in a moment.
The MySQL database server can be downloaded from http://mysql.com/downloads for a variety of operating systems, including MS Windows, Mac OS X, and Linux. Click on the MySQL Community Server link to download the server.
Once downloaded, running the installer will set up everything you need, and you can access MySQL directly from the command line:
% mysql Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection...