Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP and MySQL / PostgreSQL Which is easier

Status
Not open for further replies.

geokor

Programmer
Aug 16, 2000
126
US
I am fairly new to PHP (Coming from an ASP/ColdFusion background) and am finding a lot of conflicting info re using PHP, Apache and either MySQL or PostgreSQL. Which is easier to use? Performance is not critical since most of the sites I build are medium busy(less than a couple of hundred hits per day).It seems PHP and MYSql work together more easily but I am leaning toward PostgreSQL. Any insight from anyone having experience with either (preferably both) would be appreciated.
Thanks.
George K
 
My recommendation is that you become familiar with both databases, because they each have different strengths. MySQL is definitely easier for smaller jobs, general dynamic websites, etc...

However for serious web-based applications, PostgreSQL has more features in common with the "serious" DB platforms, such as Oracle, DB2, etc... You might find that MySQL seems easy at first, but you can end up painting yourself into a corner. I am just going through this with one web-based application I am developing:

The client ended up greatly increasing the scope of the application, while I was still developing it. I had originally decided on PHP/MySQL, because it was to be hosted by their ISP. By the time the scope began to increase, it became obvious that we would need a specialized server. With the complicated relationships I had to build between tables, it would have been muich easier to start with PostgreSQL, having full foreign key constraints, with cascading deletes, etc... Now, in order to keep the application running in MySQL, I have had to write several ugly hacks, and am soon planning to switch the whole thing to PostgreSQL. -------------------

Current reading --
 
Thank you both for taking the time. One other thing that scares me about MySQL is this cloud regarding their licensing. I haven't been able to get a clear picture of when MySQL has to be paid for and when it can be used freely. I think inspite of the learning curve I'm leaning even more strongly toward PostgreSQ. Thanks again.
George K
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top