Commit 7541f721 authored by monty@donna.mysql.com's avatar monty@donna.mysql.com
Browse files

Fixed bug when opening BDB tables twice

parent 94836b77
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@ echo "Building on $to_host"

rm -rf $BD/*
rm -f $WD/binary/*
mkdir -p $WD/binary
mkdir -p $WD/Logs
mkdir -p $BD/Logs

+10 −1
Original line number Diff line number Diff line
@@ -8704,7 +8704,16 @@ shell> ./bin/mysql_install_db
shell> ./bin/safe_mysqld --user=mysql &
@end example
This installs and starts @code{MySQL} without any passwords.
This creates the @code{mysql} database which will hold all database
privileges, the @code{test} database which you can use to test
@strong{MySQL} and also privilege entries for the user that run
@code{mysql_install_db} and a @code{root} user (without any passwords).
This also starts the @code{mysqld} server.
@code{mysql_install_db} will not overwrite any old privilege tables, so
it should be safe to run in any circumstances.  If you don't want to
have the @code{test} database you can remove it with @code{mysqladmin -u
root drop test}.
Testing is most easily done from the top-level directory of the @strong{MySQL}
distribution.  For a binary distribution, this is your installation directory
+2 −0
Original line number Diff line number Diff line
@@ -286,6 +286,7 @@ start_master()
	    --pid-file=$MASTER_MYPID \
	    --socket=$MASTER_MYSOCK \
            --log=$MASTER_MYLOG --default-character-set=latin1 \
	    --core \
	    --language=english $EXTRA_MASTER_OPT $EXTRA_MASTER_MYSQLD_OPT"
    if [ x$DO_DDD = x1 ]
    then
@@ -327,6 +328,7 @@ start_slave()
	    --port=$SLAVE_MYPORT \
	    --socket=$SLAVE_MYSOCK \
            --log=$SLAVE_MYLOG --default-character-set=latin1 \
	    --core \
            --language=english $EXTRA_SLAVE_OPT $EXTRA_SLAVE_MYSQLD_OPT"
    if [ x$DO_DDD = x1 ]
    then
+4 −0
Original line number Diff line number Diff line
@@ -402,3 +402,7 @@ id parent_id level
1180	105	2
count(*)
1
a
1
2
3
+8 −0
Original line number Diff line number Diff line
@@ -326,3 +326,11 @@ CREATE TABLE t1 (
INSERT INTO t1 ( sca_code, cat_code, sca_desc, lan_code, sca_pic, sca_sdesc, sca_sch_desc) VALUES ( 'PD', 'J', 'PENDANT', 'EN', NULL, NULL, 'PENDANT'),( 'RI', 'J', 'RING', 'EN', NULL, NULL, 'RING');
select count(*) from t1 where sca_code = 'PD';
drop table t1;

#
# Test of opening table twice
#
CREATE TABLE t1 (a int not null, primary key (a)) type=bdb;
insert into t1 values(1),(2),(3);
select t1.a from t1 natural join t1 as t2 order by t1.a;
drop table t1;
Loading