mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 04:22:27 +01:00
24aa723a28
for passing ones. Changes to be committed: new file: mysql-test/std_data/galera-cert.pem new file: mysql-test/std_data/galera-key.pem new file: mysql-test/std_data/galera-upgrade-ca-cert.pem new file: mysql-test/std_data/galera-upgrade-server-cert.pem new file: mysql-test/std_data/galera-upgrade-server-key.pem modified: mysql-test/suite/galera/disabled.def modified: mysql-test/suite/galera/r/MW-416.result modified: mysql-test/suite/galera/r/MW-44.result modified: mysql-test/suite/galera/r/galera_sst_mysqldump_with_key,debug.rdiff modified: mysql-test/suite/galera/r/galera_sst_mysqldump_with_key.result modified: mysql-test/suite/galera/t/MW-416.test modified: mysql-test/suite/galera/t/galera_kill_applier.test
132 lines
3.4 KiB
Text
132 lines
3.4 KiB
Text
--source include/galera_cluster.inc
|
|
--source include/have_innodb.inc
|
|
|
|
--source include/wait_until_ready.inc
|
|
|
|
CREATE USER 'userMW416'@'localhost';
|
|
GRANT SELECT, INSERT, UPDATE ON test.* TO 'userMW416'@'localhost';
|
|
|
|
--connect userMW416, localhost, userMW416,, test, $NODE_MYPORT_1
|
|
--connection userMW416
|
|
|
|
# DDL
|
|
|
|
--error 1044
|
|
ALTER DATABASE db CHARACTER SET = utf8;
|
|
--error 1044
|
|
ALTER EVENT ev1 RENAME TO ev2;
|
|
--error 1370
|
|
ALTER FUNCTION fun1 COMMENT 'foo';
|
|
#--error 1044,1227
|
|
#ALTER INSTANCE ROTATE INNODB MASTER KEY;
|
|
--error 1044,1227
|
|
ALTER LOGFILE GROUP lfg ADD UNDOFILE 'file' ENGINE=InnoDB;
|
|
--error 1044,1227,1370
|
|
ALTER PROCEDURE proc1 COMMENT 'foo';
|
|
--error 1044,1227,1370
|
|
ALTER SERVER srv OPTIONS (USER 'sally');
|
|
--error 1044,1142,1227,1370
|
|
ALTER TABLE tbl DROP COLUMN col;
|
|
--error 1044,1227,1370
|
|
ALTER TABLESPACE tblspc DROP DATAFILE 'file' ENGINE=innodb;
|
|
--error 1044,1142,1227,1370
|
|
ALTER VIEW vw AS SELECT 1;
|
|
|
|
--error 1044,1227,1370
|
|
CREATE DATABASE db;
|
|
--error 1044,1227,1370
|
|
CREATE EVENT ev1 ON SCHEDULE AT CURRENT_TIMESTAMP DO SELECT 1;
|
|
--error 1044,1227,1370
|
|
CREATE FUNCTION fun1() RETURNS int RETURN(1);
|
|
--error 1044,1227,1370
|
|
CREATE FUNCTION fun1 RETURNS STRING SONAME 'funlib.so';
|
|
--error 1044,1227,1370
|
|
CREATE PROCEDURE proc1() BEGIN END;
|
|
--error 1044,1142,1227,1370
|
|
CREATE INDEX idx ON tbl(id);
|
|
--error 1044,1142,1227,1370
|
|
CREATE LOGFILE GROUP lfg ADD UNDOFILE 'undofile' ENGINE innodb;
|
|
--error 1044,1142,1227,1370
|
|
CREATE SERVER srv FOREIGN DATA WRAPPER 'fdw' OPTIONS (USER 'user');
|
|
--error 1044,1142,1227,1370
|
|
CREATE TABLE t (i int);
|
|
--error 1044,1142,1227,1370
|
|
CREATE TABLESPACE tblspc ADD DATAFILE 'file' ENGINE=innodb;
|
|
--error 1044,1142,1227,1370
|
|
CREATE TRIGGER trg BEFORE UPDATE ON t FOR EACH ROW BEGIN END;
|
|
--error 1044,1142,1227,1370
|
|
CREATE VIEW vw AS SELECT 1;
|
|
|
|
|
|
|
|
--error 1044,1142,1227,1370
|
|
DROP DATABASE db;
|
|
--error 1044,1142,1227,1370
|
|
DROP EVENT ev;
|
|
--error 1044,1142,1227,1370
|
|
DROP FUNCTION fun1;
|
|
--error 1044,1142,1227,1370
|
|
DROP INDEX idx ON t0;
|
|
--error 1044,1142,1227,1370,1064
|
|
DROP LOGFILE GROUP lfg;
|
|
--error 1044,1142,1227,1370
|
|
DROP PROCEDURE proc1;
|
|
--error 1044,1142,1227,1370
|
|
DROP SERVEr srv;
|
|
--error 1044,1142,1227,1370
|
|
DROP TABLE t0;
|
|
--error 1044,1142,1227,1370,1064
|
|
DROP TABLESPACE tblspc;
|
|
--error 1044,1142,1227,1360,1370
|
|
DROP TRIGGER trg;
|
|
--error 1044,1142,1227,1370
|
|
DROP VIEW vw;
|
|
|
|
--error 1044,1142,1227,1370
|
|
RENAME TABLE t0 TO t1;
|
|
|
|
--error 1044,1142,1227,1370
|
|
TRUNCATE TABLE t0;
|
|
|
|
# DCL
|
|
|
|
# account management
|
|
--error 1044,1142,1227,1370,1064
|
|
ALTER USER myuser PASSWORD EXPIRE;
|
|
--error 1044,1142,1227,1370
|
|
CREATE USER myuser IDENTIFIED BY 'pass';
|
|
--error 1044,1142,1227,1370
|
|
DROP USER myuser;
|
|
--error 1044,1045,1142,1227,1370
|
|
GRANT ALL ON *.* TO 'myuser';
|
|
--error 1044,1142,1227,1370
|
|
RENAME USER myuser TO mariauser;
|
|
--error 1044,1142,1227,1370
|
|
REVOKE SELECT ON test FROM myuser;
|
|
--error 1044,1142,1227,1370,1698
|
|
REVOKE ALL, GRANT OPTION FROM myuser;
|
|
--error 1044,1142,1227,1370,1698
|
|
REVOKE PROXY ON myuser FROM myuser;
|
|
|
|
# table maintenance
|
|
--error 1044,1142,1227,1370
|
|
ANALYZE TABLE db.tbl;
|
|
--error 1044,1142,1227,1370
|
|
CHECK TABLE db.tbl;
|
|
--error 1044,1142,1227,1370
|
|
CHECKSUM TABLE db.tbl;
|
|
--error 1044,1142,1227,1370
|
|
OPTIMIZE TABLE db.tbl;
|
|
--error 1044,1142,1227,1370
|
|
REPAIR TABLE db.tbl;
|
|
|
|
# plugin and user defined functions
|
|
--error 1044,1142,1227,1370
|
|
INSTALL PLUGIN plg SONAME 'plg.so';
|
|
--error 1044,1142,1227,1370
|
|
UNINSTALL PLUGIN plg;
|
|
|
|
--connection node_1
|
|
DROP USER 'userMW416'@'localhost';
|
|
SHOW DATABASES;
|
|
|