Friday, March 19, 2010

[Level 3] Coustomize your MySQL distribution.

If you want to customize your onw MySQL distribution,
you can compile MySQL source by you own setting by command configure.
The steps as the following:
1. Download the source.
   You can download the source from MySQL official website.
2. Confgiure.
ex.
# configure \
> --prefix=/usr/local \
> --exec-prefix=/usr/local/mysql \
> --localstatedir=/usr/local/mysql/data \
> --basedir=/usr/local/mysql \
> --datadir=/usr/local/mysql/data \
> --with-mysqld-ldflags=--rdynamic \
> --with-plugins=partition,innobase \
> --with-embedded-privilege-control;

3. Make/Make install.
# make && make install


Wish this helps.

regards,
Stanley Huang