wget http://
cd mysql-5.0.27
CFLAGS=-DHAVE_BROKEN_REALPATH ./configure --prefix=/usr/local/mysql --with-extra-charsets=all --enable-thread-safe-client --enable-local-infile --enable-assembler --with-named-z-libs=not-used --enable-shared --enable-static --with-innodb --with-plugins=innobase
If the configure succeeds, then you can compile it:make
This will likely take a long time as mysql is very large. Once it finishes, to create the binary package, type:./scripts/make_binary_distribution
This will assemble all binary files and scripts and put them into a tar.gz for you, which should be in the directory you're currently in:server# ls -la *.tar.gz
-rw-r--r-- 1 root 100 23977052 Jul 31 2006 mysql-5.0.27-freebsd6.0-i386.tar.gz
checking for termcap functions library... configure: error: No curses/termcap library found
Typeapt-get install libncurses5-dev