您的位置:首页 > 数据库 > MySQL

vs2012调试mysql源码

2016-04-11 23:22 519 查看


1.准备工作

mysql 源码
perl tool
Cmake
Bison


注意事项

路径不要有空格 并且修改js的默认打开方式


修改js默认打开方式的方法:regedit->HKEY_CLASSES_ROOT->.js->默认->JSFile
验证cmake perl bison是否安装成功 where cmake;where perl;where bison;


2.开始安装

cd mysql-source
mkdir bld
cd bld
cmake ..


3.修改一些地方

strings\ctype-czech.c
strings\ctype-latin1.c
strings\decimal.c
mysys\thr_mutex.c
storage\innobase\include\ut0mem.h
sql\sql_locale.cc
上述文件修改为utf-8带bom头
sql\mysqld.cc中的test_lc_time_sz()函数,将其中的DBUG_ASSERT(0)改为DBUG_ASSERT(1)即可。


4.调试

编译整个解决方案
然后将mysqld工程的Debug的:属性->调试->命令参数,设为--console
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: