mariadb/src
Rich Prohaska 6a0efbf923 test case to check mostly seq inserts. closes #1003
git-svn-id: file:///svn/tokudb@4984 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-08 17:54:35 +00:00
..
lock_tree Closes #908 2008-06-11 20:09:47 +00:00
range_tree Converted all dos files to unix format (endlines only changed) 2008-06-02 21:28:03 +00:00
tests test case to check mostly seq inserts. closes #1003 2008-07-08 17:54:35 +00:00
elocks.c Work on trace implementation. Addresses #701. 2008-04-12 09:12:22 +00:00
errors.c Hacking makefiles. Addresses #782. 2008-05-04 22:07:52 +00:00
export.map Make the leaf nodes have accurate memory footprint info. 2008-05-27 21:08:31 +00:00
Makefile Quiet down the make. Addresses #13. 2008-06-18 13:45:47 +00:00
Makefile.include Hacking makefiles. Addresses #782. 2008-05-06 10:27:46 +00:00
README Rename 2007-07-13 19:37:47 +00:00
tdbtrace.c Make the system compile again. Addresses #701. 2008-04-14 16:01:01 +00:00
tdbtrace.h Make the system compile again. Addresses #701. 2008-04-14 16:01:01 +00:00
tokuglobals.py Don't complain about {{{db_env_set_func_fsync}}}. Addresses #8, #499. 2008-03-16 14:05:35 +00:00
ydb-internal.h Hacking makefiles. Addresses #782. 2008-05-04 22:07:52 +00:00
ydb.c addresses #938 2008-06-20 17:20:03 +00: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