mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 23:04:20 +01:00
2ee21c9c46
client/mysqltest.c: Don't write error message to log if there is more than one possible error message include/mysqld_error.h: Made error messages more general libmysqld/Makefile.am: md5 is now in mysys mysql-test/include/have_isam.inc: Update to new result format mysql-test/include/not_embedded.inc: Update to new result format mysql-test/mysql-test-run.sh: Update to new result format mysql-test/r/auto_increment.result: Update to new result format mysql-test/r/count_distinct2.result: Update to new result format mysql-test/r/create.result: Update to new result format mysql-test/r/func_system.result: Update to new result format mysql-test/r/isam.result: Update to new result format mysql-test/r/lock.result: Update to new result format mysql-test/r/lock_multi.result: Update to new result format mysql-test/r/rename.result: Update to new result format mysql-test/r/rpl000001.result: Fix wrong test mysql-test/r/tablelock.result: Update to new result format mysql-test/t/rename.test: Update to new result format sql/share/czech/errmsg.txt: Made error messages more general sql/share/danish/errmsg.txt: Made error messages more general sql/share/dutch/errmsg.txt: Made error messages more general sql/share/english/errmsg.txt: Made error messages more general sql/share/estonian/errmsg.txt: Made error messages more general sql/share/french/errmsg.txt: Made error messages more general sql/share/german/errmsg.txt: Made error messages more general sql/share/greek/errmsg.txt: Made error messages more general sql/share/hungarian/errmsg.txt: Made error messages more general sql/share/italian/errmsg.txt: Made error messages more general sql/share/japanese/errmsg.txt: Made error messages more general sql/share/korean/errmsg.txt: Made error messages more general sql/share/norwegian-ny/errmsg.txt: Made error messages more general sql/share/norwegian/errmsg.txt: Made error messages more general sql/share/polish/errmsg.txt: Made error messages more general sql/share/portuguese/errmsg.txt: Made error messages more general sql/share/romanian/errmsg.txt: Made error messages more general sql/share/russian/errmsg.txt: Made error messages more general sql/share/slovak/errmsg.txt: Made error messages more general sql/share/spanish/errmsg.txt: Made error messages more general sql/share/swedish/errmsg.txt: Made error messages more general sql/share/ukrainian/errmsg.txt: Made error messages more general sql/sql_lex.cc: We can't remove lex->thd because sql_yacc uses it. sql/sql_lex.h: We can't remove lex->thd because sql_yacc uses it. sql/sql_yacc.yy: Cleanup support-files/mysql.spec.sh: Create MySQL-embedded rpm tools/mysqlmanager.c: Fix bug in merge
73 lines
1.8 KiB
Text
73 lines
1.8 KiB
Text
slave stop;
|
|
reset master;
|
|
reset slave;
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
slave start;
|
|
use test;
|
|
drop table if exists t1,t3;
|
|
create table t1 (word char(20) not null);
|
|
load data infile '../../std_data/words.dat' into table t1;
|
|
set password = password('foo');
|
|
set password = password('');
|
|
create table t3(n int);
|
|
insert into t3 values(1),(2);
|
|
use test;
|
|
select * from t3;
|
|
n
|
|
1
|
|
2
|
|
select sum(length(word)) from t1;
|
|
sum(length(word))
|
|
71
|
|
drop table t1,t3;
|
|
reset master;
|
|
reset slave;
|
|
drop table if exists t1,t2;
|
|
create table t1(n int);
|
|
insert into t1 values(10);
|
|
insert into t1 values(9);
|
|
insert into t1 values(8);
|
|
insert into t1 values(7);
|
|
insert into t1 values(6);
|
|
insert into t1 values(5);
|
|
insert into t1 values(4);
|
|
insert into t1 values(3);
|
|
insert into t1 values(2);
|
|
insert into t1 values(1);
|
|
create table t2(id int);
|
|
insert into t2 values(connection_id());
|
|
create temporary table t1_temp(n int);
|
|
insert into t1_temp select get_lock('crash_lock%20C', 1) from t2;
|
|
update t1 set n = n + get_lock('crash_lock%20C', 2);
|
|
select (@id := id) - id from t2;
|
|
(@id := id) - id
|
|
0
|
|
kill @id;
|
|
drop table t2;
|
|
Server shutdown in progress
|
|
set sql_slave_skip_counter=1;
|
|
slave start;
|
|
select count(*) from t1;
|
|
count(*)
|
|
10
|
|
drop table t1;
|
|
create table t1 (n int);
|
|
insert into t1 values(3456);
|
|
use mysql;
|
|
insert into user (Host, User, Password)
|
|
VALUES ("10.10.10.%", "blafasel2", password("blafasel2"));
|
|
select select_priv,user from mysql.user where user = 'blafasel2';
|
|
select_priv user
|
|
N blafasel2
|
|
update user set Select_priv = "Y" where User="blafasel2";
|
|
select select_priv,user from mysql.user where user = 'blafasel2';
|
|
select_priv user
|
|
Y blafasel2
|
|
use test;
|
|
select n from t1;
|
|
n
|
|
3456
|
|
select select_priv,user from mysql.user where user = 'blafasel2';
|
|
select_priv user
|
|
Y blafasel2
|
|
drop table t1;
|