Setup MySQL CDT DEV Enviroment

1. install bzr tool, ref http://dev.mysql.com/doc/refman/5.1/en/installing-development-tree.html
2. download mysql 5.1 code from trunk
3. autoreconf --force --install
4. ./configure --with-debug --without-libedit --with-plugins=innobase
5. make & sudo make install
6. setup eclipse cdt env
    a. startup eclipse by sudo cmd or root user
    b. build project
    c. set debug diag, ref http://forge.mysql.com/wiki/Eclipse/CDT_on_Linux_and_Mac_OS_X, here is my "program parameters" when startup mysqld instance:
    --datadir = /var/lib/mysql --user = mysql --pid-file = /var/run/mysqld/mysqld.pid --port = 3306  --socket = /tmp/mysql.sock --default-storage-engine = innodb

你可能感兴趣的:(Setup MySQL CDT DEV Enviroment)