Downloading with free client:
- Download the client if you have not already done so
- Download URL is http://www.bitmover.com/bk-client2.0.shar
- Unpack it and build it:
| /bin/sh bk-client2.0.shar |
- From the command line run:
| ./bkf clone bk://project.bkbits.net/Repository workspace |
- where project is the name of the hosted project, Repository is one of the repositories of the project, and workspace is where you want the sources to go.
- More information on the client may be had by running
| ./bkf --help |
bkf clone bk://mysql.bkbits.net/mysql-5.1 mysql-5.1 这个是从网上获取源代码
在cflag中加入 –g调试选项
cp compile-pentium-debug compile-generic-debug
vim compile-generic-debug:
#! /bin/sh
path=`dirname $0`
set -- "$@" --with-debug=full
. "$path/SETUP.sh"
#extra_flags="$pentium_cflags $debug_cflags"
extra_flags="-g $debug_cflags"
#extra_configs="$pentium_configs $debug_configs"
extra_configs="--prefix=/data/randyxu/mysql_gdb/"
. "$path/FINISH.sh"
~
Cd mysql_src/
BUILD/ compile-generic-debug
Make install 安装到/data/randyxu/mysql_gdb/
groupadd mysql
useradd -g mysql mysql
cd /data/randyxu/mysql_gdb/
./mysql_install_db
cd ..
chown mysql. ./var/ -R
启动:cd bin;./mysqld_safe &
停止:cd bin;./mysqladmin shutdown
连接 mysql –h127.0.0.1 –uroot -p