Use PostgreSQL database for PHP development

Source: Internet
Author: User
Clarify: the content below is more about how to install the environment, and there is almost no actual development content. you can consider whether to browse this article. PostgreSQL database should be the starting star in the database field, some of which are more effective than Oracle and other trade databases.

Clarify: the content below is more about how to install the environment, and there is almost no actual development content. you can consider whether to browse this article.

PostgreSQL databases should be the leading star in the database field. some of them are even more effective than Oracle and other trade databases. in the open source world, it can be said that it is very good, and even MySQL is far from it. It supports database connection methods including JDBC, ODBC, DBI, and so on. it can be used to interact with all popular programming languages. it can be said that it is suitable for any programming developer.

The official content of preference may be more explicit Title: http://www.pgsqldb.org/pgsqldoc-8.0c/preface.html
----------------------------------
What is PostgreSQL?
PostgreSQL is an object relational database management system (ORDBMS) based on IPVs developed by the computer department of UC Berkeley ). Many of the leading concepts of IPVs are only presented in the trade database very late.

PostgreSQL was an open-source speaker in the initial Berkeley code. It supports most SQL: 2003 and provides many other modern features:

Complex query
Foreign key
Trigger
View
Transaction integrity
Multi-Version Concurrency control
Similarly, PostgreSQL can be expanded in many ways, for example, by adding a new one:

Data type
Function
Identifier
Collection functions
Index method
Process language

In addition, anyone can apply, modify, and distribute PostgreSQL for free for any purpose, whether it is private, commercial, or academic research applications.
-------------------------------------

Today, I want to try developing the PHP application PostgreSQL, so I just need to install one.

The first step is to install the latest version 8.0.3 in Windows. However, you may think that the actual development platform is mostly in Unix/Linux, so you are ready to develop it in FreeBSD, freeBSD5.4 was upgraded yesterday, so we had to hurry up with ports.

Cd/usr/ports/database/postgresql80-server
Cat Makefile
The latest version is 8.0.3.
Make install
For the long wait process, you need to download the program gmakeand the program sql-8.0.3.tar.bz2 and other files, which will be completed in half a day. Haha, I'm glad to take a look at it:
/Usr/local/etc/rc. d/postgresql. sh start (This file may not be named like this)
Dizzy. why is it wrong? It cannot be started after death. it seems that you have to manually install it. uninstall it first:
Cd/usr/ports/database/postgresql80-server
Make deinstall
Alas, copy the file:
Cd/usr/ports/distfiles
Mv./postgresql-8.0.3.tar.bz2/usr/local/src
Decompress:
Cd/usr/local/src
Bunzip2-d./postgresql-8.0.3.tar.gz2
Tar xvf./postgresql-8.0.3.tar
Decompressed successfully:
Cd./postgresql-8.0.3
Install the configuration file in our old Directory:
./Configure -- prefix =/usr/local/pgsql
Gmake
Wait for the process, and later, dizzy, how again error?
Prompt that the file system is full... -_-#
I use virtual machines and the space allocation is unfair. check if I can add some space to/usr.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.