MySQL and PostgreSQL: Two Free Relational Databases for OS X Users
Low End Mac Reader Specials
Memory To Go Special: MacPro 8 Core Memory 4GB kit $154 / 2GB kit $94, New 2008 iMac 2GB $46. MacBook Pro / MacMini / iMac Intel Core2 DUO 2GB $44 / 1GB $23--Free shipping available.
Download Typestyler, still the Ultimate Styling Tool for Internet, Print and Video Graphics. Works great in Classic with a Native OS X Version on the way. Free Tryout: www.typestyler.com
LA Computer Company: Specials on AppleCare, iMac's, Apple Batteries and Apple A/C Adapters. Also Great prices on Used Apple Computers. Call 1-800-941-7654 Click Here.
Mac users can finally play Party Poker for Mac. Not only that, they can also learn how to play PokerStars for Mac.
Laptop Hardware Provided by TechRestore - Overnight Mac & iPod Repairs.
Compare products like desktop computers, laptops, and LCD TVs side by side! All the information and reviews to make the best purchasing decision for a new cell phone GPS products or MP3 players. The Ciao network makes searching products easy for you.
MacBook/MacBook Pro / MacMini / iMac Intel Core2 DUO DDR2 667Mhz 4GB Kit $84, 3GB Kit $60, 2GB Kit $40 1GB $20. Click to Maximize your Macs...
- 2006.03.15
Most of us remember the days when Mac databases pretty much meant one thing: FileMaker Pro. Based on technology that Apple acquired from Nashoba Systems in the late 1980s when they purchased FileMaker, Apple's Claris software division released FileMaker Pro 1.0 in 1990.
FileMaker Pro's very Mac-like interface, striking a near perfect balance between ease-of-use and power, made it an instant standard.
Big SQL database servers were pretty much the realm of other platforms in that era. There were very few options for running a relational database on your Mac.
FileMaker gained relational capabilities with version 3.0 in 1995, but as many database purists have noted over the years, the ability to reference another database is not the same as having a truly relational, multi-table database.
As of version 8, FileMaker ships a truly relational database with the ability to create multiple tables in one database. But not everyone can shell out close to $300 for a copy - or will want to when there are free alternatives.
Free SQL Alternatives to FileMaker Pro
The move to the Unix-based OS X brought a lot of new database options to the Mac. Popular open source relational databases like MySQL and PostgreSQL can run happily in the background on your Mac. While FileMaker has a nice GUI and the open source databases are inherently command-line applications, there are some nice GUI clients that ease you into the world of SQL if you are new to it.
Would the average Mac user decide to eschew the comfortable GUI ease of FileMaker for a more challenging Unix-based program? This being Low End Mac, I think most of our readers appreciate free software like MySQL or PostgreSQL. FileMaker is far from cheap, much less free.
Learning MySQL or PostgreSQL might take a little more effort, but part of the fun of maximizing the usefulness of your low-end hardware is pushing yourself a little farther and learning something new.
MySQL or PostgeSQL?
I think the real question boils down to this: Should the average Mac user go for MySQL or PostgreSQL?
In the realm of computer holy wars, this can be a particular nasty one.
PostgreSQL fans seem to thrive on pointing out the features that MySQL lacks. While true transactional support, true foreign key constraints, and schemas are nice, we're generally talking about setting up a small, personal database server. The average home user will never need to know what these terms mean, much less utilize these features.
This is not meant to imply that MySQL isn't capable of carrying a heavy load, especially on the Web. Along with PHP, it's one half of the "dynamic duo" that powers many database-driven websites, including Yahoo!, Amazon, Wikipedia, and Slashdot. [And, to an increasing extent, Low End Mac. ed]
If it's good enough for those guys, it's good enough for the vast majority of database needs.
In PostgreSQL's favor, it does an amazing job of replicating the features of extremely high-end databases. If you've ever worked with Oracle or a similar high-end database, you'll feel right at home. You'll notice that there's hardly an enterprise-class feature that's missing.
That said, I'm a fan of both. Both MySQL 5 and PostgreSQL 8 run on my PowerBook. They both use few resources while running in the background, and they're both configured out of the box to only accept connections from the local machine, so there's minimal security risk in running them on my laptop.
There are normal OS X package installers available for both, so there are no worries about getting them up and running.
But Which One?
If I had to recommend one or the other for the Mac user who wants to dip his feet in to the world of relational databases, I'd go with MySQL for a couple of reasons.
First, MySQL is very popular - the world's most popular open source database, according to its makers. Googling for "mysql" or "php mysql" will bring you a ton of resources, whether you're just getting started or want to do advanced tasks.
You might even run across a fine series of articles that Dan Knight wrote about PHP and MySQL here on Low End Mac a few years ago as he was transitioning the site from static HTML pages to dynamically generated pages.
In short, that popularity means that it's very easy to find help for MySQL or just learn new tricks when you're so inclined.
Second, there are some really nice graphical front-ends out there for MySQL. Perhaps the most popular is the web-based PHPMyAdmin, and MySQL offers two nice tools (Administrator and Query Browser) that run equally well on Mac, Linux, and Windows.
But the slickest
MySQL front end you will find is Mac-only, the wonderful CocoaMySQL. Developed in XCode
as a fully native OS X app, CocoaMySQL provides an easy, intuitive
GUI for creating databases, tables, managing data, and running your own
custom queries.
It's also a great learning tool, thanks to its Console feature. Just click the Console button to open a drawer that shows the exact SQL commands sent to the server. By using this GUI tool, you can actually prep yourself for performing the same tasks at the command line.
PostgreSQL's greatest asset is its enterprise-class strength. It's basically an open-source replication of extremely high-end databases and will appeal to the geekiest of database administrators.
Postgre also integrates with PHP, and there a few nice GUI tools out there, although none match the polish of any of the MySQL tools. There's a Mac-only tool called PGnJ that is promising, but it doesn't live up to the standard that CocoaMySQL sets.
Some things in Postgre are just done easier from the command line, and that doesn't bode well for someone just getting started with SQL.
So while Postgre is a wonderful option for anyone who's so inclined, I have to give the edge to MySQL because of its widespread popularity and the nice graphical tools that help you learn as you go.
We live in good times for free, powerful database software on the
Mac. While FileMaker will probably always be easier for the database
newbie, those who appreciate a good bargain and don't mind learning a
few new tricks will certainly enjoy learning SQL on their Mac.
- Link: FileMaker
Pro
- Link: FileMaker, Wikipedia
- Link: MySQL
- Link: PostgreSQL
- Link: Using PHP and MySQL, Dan Knight, Online Tech Journal
- Link: PHPMyAdmin
- Link: CocoaMySQL
- Link: PGnJ
Recent Plays Well with Others articles
- End of G4 models points to unprecedented value for used G4 Macs, 06.02. The PowerPC G4 may no longer have a place in Apple's product line, but that's a far cry from saying G4-based Macs are obsolete. If anything, there value is going to increase.
- X11: Your window for using Unix apps on the Mac, 05.17. Mac OS X is a Unix variant. X11 is the tool that lets you access Unix applications using a graphical interface with mouse support.
- 6 extensions to make Firefox even better, 03.29. Improve Firefox with everything from web developer tools to nuking unwanted ads, from faster page loads to knowing the weather.
- More in the Plays Well with Others index.
Recent Content on Low End Mac
- US Customs Can Seize Any Laptop, Aluminum and Ultraportable MacBook Rumors, and More, The 'Book Review, 08.08. Also thoughts on the next generation of MacBooks, "I want to marry the Apple MacBook Pro", do it yourself MacBook Pro hard drive replacement, bargain 'Books from $490 to $3,069, and more.
- iPhone Could Reach Vermont, Huge Demand for Original iPhone, 19 Bible Translations for iPhone, and More, iNews Review, 08.08. Also tethering your computer to your iPhone, BlackBerry vs. iPhone for smart phone lead, ColorWare colors the iPhone, $1,000 'I Am Rich' iPhone app, and much more.
- New Life for Old Macs, 4 of 5 Businesses Using Macs, 5th Annual Mac Mod Challenge, and More, Mac News Review, 08.08. Also tips for switchers, time saving tips for Leopard users, Logitech's new Mac keyboard, NewerTech updated miniStack, Ukelele keyboard layout editor, and more.
- Best Titanium PowerBook G4 Deals, Low End Mac Deals, 08.08. Used 500 MHz DVD, $480; 667 MHz Combo, $530; 867 MHz, $550; 1 GHz, $678; SuperDrive, $839.
- Best Time Capsule and AirPort Deals, Low End Mac Deals, 08.08. 500 GB Time Capsule, $279; 1 TB, $459; AirPort Extreme Card, $39; 802.11n Base Station, $156; 802.11g AirPort Express, $60; 802.11n, $79.
- Best Xserve Deals, Low End Mac Deals, 08.08. Used G4, $1,250; G5 from $1,700; refurb 3.0 4-core Xeon, $2,299; new 2.0 4-core, $1,900; 2.8 GHz, $2,888; 8-core, $3,299; 3.0, $4,059.
- Mac of the Day: Power Mac 7500, Aug. 1995 - This workhorse introduced a new desktop case and CPU daughter cards.
- List of the Day: Mac-N-DOS is for those who use Windows and the Mac OS.
- August 8 in LEM history: 97: Confessions of a Microsoft user - 00: My perfect PowerBook - 01: CD-ROM and system problems - 02: PayPal insecurity - Astronomy, Macs, and Windows PCs - Macs in the workplace - 03: Macs, making music, and crashes in OS 9 - USB Memory Mouse - 05: WorkStrip: Much more than a Dock replacment - 06: Quad-core 64-bit Mac Pro and Xserve - 07: 2007 Mac mini value equation - PowerBook 100: Sony miniaturizes the Mac Portable - Apple's new keyboards - Charge your iPod with Griffin's $30 PowerBlock
- Creating Classic Mac Boot Floppies in OS X, Paul Brierley, The 'Book Beat, 08.07. Yes, it is possible to create a boot floppy for the Classic Mac OS using an OS X Mac that doesn't have Classic. Here's how.
- Apple Could Sell 20 Million iPhones in 2008, Frank Fox, Stop the Noiz, 08.07. Apple sold 2.4 million iPhones in the first half of the year. How can it even hope to sell the 10 million it predicted?
- Is Wirecard a Real Alternative to PayPal?, Carl Nygren, Classic Macs in the Intel Age, 08.07. PayPal has an established worldwide presence, but Wirecard is offered by a real bank and has lower fees. Any drawbacks?
- Best iBook G4 Deals, Low End Mac Deals, 08.07. Used 12" 800 MHz Combo, $350; 1.2 GHz, $390; 14" 1 GHz, $450;1.33, $520; SuperDrive, $550; 1.42 GHz Combo, $530; SD, $625.
- Best iMac G4 Deals, Low End Mac Deals, 08.07. Used 15" 700 MHz CD-RW, $279; 800 Combo, $300; 1 GHz $390; 17" 800 MHz SD, $429; 1.25 GHz, $449; 20", $569.
- Best iPod shuffle Deals, Low End Mac Deals, 08.07. Refurb 2G/3G 1 GB, $39; new 3G, $46; refurb 2 GB, $59; new, $68.
- More links in our archive.
About LEM | Support | Usage | Privacy | Contacts


