Monday, October 20, 2008

MySQL restart on Mac OS X

This is the simplest way to restart the server on Mac OSX that I found

my-computer:~ me$ mysqladmin -uroot -p shutdown
Enter password:
my-computer:~ me$ sudo mysqld_safe
Starting mysqld daemon with databases from /sw/var/mysql

Thursday, October 16, 2008

Voted

I voted so I have the right to complain.

Wednesday, October 8, 2008

MySQL Python API

If you try to install the python API for MySQL on Leopard, and receive the following message:

lipo: can't open input file: /var/tmp//ccDsRjet.out (No such file or directory)

make sure you check out this.

Friday, June 6, 2008

Installing BerkeleyDB perl module from CPAN

I was getting an error executing:

cpan -i BerkeleyDB

This seemed to be because I did not have Berkeley installed on my mac.  Well no problem, just execute

port install db46

from Macports.  After that finishes, just set up a link in /usr/local e.g.

ln -s  /usr/local/BerkeleyDB.4.6/ /usr/local/BerkeleyDB

and then 

cpan -i BerkeleyDB

should work.

Install perl module off cpan

it's easy

cpan -i [module]

Tuesday, June 3, 2008

Enable sending email on Mac OS X

It wasn't completely obvious to me, but here is what you need to execute in order to be able to send email from your Mac.

in a terminal:
postfix start