MySQL

 MySQL is a free relational database, now owned by Oracle.

Installing MySQL

Here are instructions for setting up a 64-bit MySQL on Snow Leopard, tested August 2010 with 10.6.4.

These instructions will also work on Lion (10.7). Oracle does not provide a version of MySQL for Lion on its download page as of 10 Feb 2012, but I downloaded version 5.5.20 for 10.6 and installed it on Lion, reloaded the database, and things appear to work. (I did have to re-install CPAN for Lion.)

Your old mysql dtabase is still on disk, and can be deleted at some point.

.my.cnf

If you make a file named .my.cnf in your home directory, then you can use the mysql command without giving a password. Mine contains

    [client]
    user=root
    password=WHATEVER
    host=localhost

If you have only one database, you can put that value in the file also, with database=DBNAME.

Home | FAQ © 2010-2012, Tom Van Vleck updated 2012-04-04 19:04