|
@@ -828,14 +828,50 @@ $
|
828
|
828
|
|
829
|
829
|
NB: You MUST use an empty database as a desctructive database fixture ('blog_sqlite.sql') is loaded.
|
830
|
830
|
|
|
831
|
+## Installing MySQL on Ubuntu Linux
|
|
832
|
+
|
|
833
|
+### Ubuntu 12.04
|
|
834
|
+
|
|
835
|
+```
|
|
836
|
+apt-get -y remove mysql-server
|
|
837
|
+apt-get -y autoremove
|
|
838
|
+apt-get -y install software-properties-common
|
|
839
|
+add-apt-repository -y ppa:ondrej/mysql-5.6
|
|
840
|
+apt-get update
|
|
841
|
+apt-get -y install mysql-server
|
|
842
|
+```
|
|
843
|
+
|
831
|
844
|
## Installing PostGIS on Ubuntu Linux
|
832
|
845
|
|
|
846
|
+### Ubuntu 12.04
|
|
847
|
+
|
|
848
|
+Install PostGIS on Ubuntu Linux with the following commands:
|
|
849
|
+
|
|
850
|
+```
|
|
851
|
+sudo apt-get install python-software-properties
|
|
852
|
+sudo apt-add-repository ppa:ubuntugis/ppa
|
|
853
|
+sudo apt-get update
|
|
854
|
+sudo apt-get install postgresql-9.1-postgis-2.0
|
|
855
|
+```
|
|
856
|
+
|
|
857
|
+### Ubuntu 14.04
|
|
858
|
+
|
833
|
859
|
Install PostGIS on Ubuntu Linux with the following command:
|
834
|
860
|
|
835
|
861
|
```
|
836
|
|
-sudo apt install postgis
|
|
862
|
+sudo apt-get install postgresql-9.3-postgis-2.1
|
837
|
863
|
```
|
838
|
864
|
|
|
865
|
+### Ubuntu 16.04
|
|
866
|
+
|
|
867
|
+Install PostGIS on Ubuntu Linux with the following command:
|
|
868
|
+
|
|
869
|
+```
|
|
870
|
+sudo apt-get install postgresql-9.5-postgis-2.2
|
|
871
|
+```
|
|
872
|
+
|
|
873
|
+### Finally (for all distros)
|
|
874
|
+
|
839
|
875
|
Now enable the PostGIS extension for your database:
|
840
|
876
|
|
841
|
877
|
```
|