Loading Build-tools/Do-all-build-steps +1 −0 Original line number Diff line number Diff line Loading @@ -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 Loading Docs/manual.texi +10 −1 Original line number Diff line number Diff line Loading @@ -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 mysql-test/mysql-test-run.sh +2 −0 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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 Loading mysql-test/r/bdb.result +4 −0 Original line number Diff line number Diff line Loading @@ -402,3 +402,7 @@ id parent_id level 1180 105 2 count(*) 1 a 1 2 3 mysql-test/t/bdb.test +8 −0 Original line number Diff line number Diff line Loading @@ -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
Build-tools/Do-all-build-steps +1 −0 Original line number Diff line number Diff line Loading @@ -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 Loading
Docs/manual.texi +10 −1 Original line number Diff line number Diff line Loading @@ -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
mysql-test/mysql-test-run.sh +2 −0 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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 Loading
mysql-test/r/bdb.result +4 −0 Original line number Diff line number Diff line Loading @@ -402,3 +402,7 @@ id parent_id level 1180 105 2 count(*) 1 a 1 2 3
mysql-test/t/bdb.test +8 −0 Original line number Diff line number Diff line Loading @@ -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;