mariadb/src
Zardosht Kasheff 0a62f29cf2 [t:3067], add another case brought up in test plan review
git-svn-id: file:///svn/toku/tokudb@26328 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:33 -04:00
..
lock_tree [t:2808] Merge 2808 onto main, remove dev and merge branches 2013-04-16 23:59:22 -04:00
range_tree c++ize the ydb and locktree include files refs[t:2511] 2013-04-16 23:59:08 -04:00
tests [t:3067], add another case brought up in test plan review 2013-04-16 23:59:33 -04:00
elocks.c merge indexer to main refs #2843 [t:2843] 2013-04-16 23:59:29 -04:00
errors.c Addresses #1765 Merge [12079] into main (pthreads-win32 for windows) 2013-04-16 23:57:53 -04:00
export.map [t:3028] Suppress engine status on failed assert for tests that expect to fail. 2013-04-16 23:59:31 -04:00
indexer-internal.h #3061 doc updates per code review refs[t:3061] 2013-04-16 23:59:32 -04:00
indexer-undo-do.c #3081 simplify dbt initialization in the indexer closes[t:3081] 2013-04-16 23:59:32 -04:00
indexer.c #3081 simplify dbt initialization in the indexer closes[t:3081] 2013-04-16 23:59:32 -04:00
indexer.h #3052 document the indexer object relationships and API closes[t:3052] 2013-04-16 23:59:32 -04:00
loader.c changes recommended during code review of loader.c 2013-04-16 23:59:31 -04:00
loader.h document loader API, close #2589 [t:2589] 2013-04-16 23:59:20 -04:00
Makefile #3054 fix the ydb makefile deps refs[t:3054] 2013-04-16 23:59:32 -04:00
README Rename 2007-07-13 19:37:47 +00:00
tokuglobals.py [t:3028] Add db_env_enable_engine_status to tokuglobals.py. 2013-04-16 23:59:31 -04:00
ydb-internal.h merge indexer to main refs #2843 [t:2843] 2013-04-16 23:59:29 -04:00
ydb.c #3054 fix closes[t:3054] 2013-04-16 23:59:32 -04:00
ydb.h Fix the cachetable-race so that it doesn't run in BDB and compiles under windows. Fixes #2699, #2698. close[t:2699] close[t:2698]. 2013-04-16 23:59:18 -04:00
ydb_lib.c closes[t:2515] Accurately distinguish between 32bit and 64bit windows 2013-04-16 23:59:06 -04:00
ydb_load.h closes[t:2483] Fix recovery bug in loader. 2013-04-16 23:59:05 -04:00

cd ~/yobiduck/ydb/src
make


cd ~/mysql/bdbi/mysql-5.0.27/
export LD_RUN_PATH=/home/bradley/yobiduck/ydb/src
./configure --with-berkeley-db-includes=/home/bradley/yobiduck/ydb/include --with-berkeley-db --with-berkeley-db-libs=/home/bradley/yobiduck/ydb/src --prefix=/home/bradley/usr

make

make install

#This one may not be needed
~/mysql/bdbi/usr/bin/mysql_install_db

#
pushd /home/bradley/mysql/bdbi/usr/ ; /home/bradley/mysql/bdbi/usr//bin/mysqld_safe &
popd

~/mysql/bdbi/usr/bin/mysql -u root
mysql> show databases;
mysql> create database yobitest;
mysql> use yobitest;
mysql> create table t1 (i int) engine=bdb;

Look for the error in /home/bradley/mysql/bdbi/usr/var/yobert.err



----
This links right:
 LD_LIBRARY_PATH=/home/bradley/mysql/bdbi/usr/lib/mysql/ ldd sql/mysqld
----
This works, 
 LD_LIBRARY_PATH=/home/bradley/mysql/bdbi/usr/lib/mysql/ /home/bradley/mysql/bdbi/usr//bin/mysqld
producing the following in the log

061208 16:11:35  InnoDB: Started; log sequence number 0 43655
ydb.c:78 db_env_create flags=0

----
 the LD_RUN_PATH thing above works.


--- on laptop I did this instead:

export LD_RUN_PATH=/home/bradley/yobiduck/ydb/src
./configure --with-berkeley-db-includes=/home/bradley/yobiduck/ydb/include --with-berkeley-db --with-berkeley-db-libs=/home/bradley/yobiduck/src --prefix=/home/bradley/usr

make
make install
/home/bradley/usr/bin/mysql_install_db 
/home/bradley/usr/bin/mysqld_safe &
/home/bradley/usr/bin/mysql -u root
~/mysql/bdbi/usr/bin/mysql -u root
mysql> show databases;
mysql> create database yobitest;
mysql> use yobitest;
mysql> create table t1 (i int) engine=bdb;

Look for the error in ~/usr/var/localhost.localdomain.err

---
To clean up after a total screwup:

rm -rf ~/usr/var/

Didn't manage to clean it up very well.

---
Goal: compiler mysql wiht debugging

export LD_RUN_PATH=/home/bradley/yobiduck/ydb/src
./configure CFLAGS="-g -O2" --with-berkeley-db-includes=/home/bradley/yobiduck/ydb/include --with-berkeley-db --with-berkeley-db-libs=/home/bradley/yobiduck/src --prefix=/home/bradley/usr

If you want to debug, you might need to start mysqld without using mysqld_safe.
Here is one way to do it:

gdb ~/usr/libexec/mysqld
(gdb) run --basedir=/home/bradley/usr --datadir=/home/bradley/usr/var --pid-file=/home/bradley/usr/var/localhost.localdomain.pid --skip-external-locking


That was screwed up (the configure args were wrong.)  Try again:

---
export LD_RUN_PATH=/home/bradley/yobiduck/ydb/src
./configure CXXFLAGS="-g -O2" CFLAGS="-g -O2" --with-berkeley-db-includes=/home/bradley/yobiduck/ydb/include --with-berkeley-db --with-berkeley-db-libs=/home/bradley/yobiduck/ydb/src --prefix=/home/bradley/usr

gdb ~/usr/libexec/mysqld
(gdb) run --basedir=/home/bradley/usr --datadir=/home/bradley/usr/var --pid-file=/home/bradley/usr/var/localhost.localdomain.pid --skip-external-locking