config root man

Current Path : /home/usr.opt/mysql57/mysql-test/suite/x/t/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //home/usr.opt/mysql57/mysql-test/suite/x/t/forbidden_sql_cmd.test

## Forbiddend sql commands 

## Preamble
--source ../include/xplugin_preamble.inc
## Test starts here
--write_file $MYSQL_TMP_DIR/forbidden_sql_cmd.tmp

## Test data
-->sql
DROP SCHEMA IF EXISTS xtest;
CREATE SCHEMA xtest;
USE xtest;

DROP PROCEDURE IF EXISTS xtest.uninstall_plugin;
DROP PROCEDURE IF EXISTS xtest.install_plugin;
DROP PROCEDURE IF EXISTS xtest.shutdown_server;

DELIMITER //
CREATE PROCEDURE xtest.uninstall_plugin()
BEGIN
UNINSTALL PLUGIN `mysqlx`;
END
//

CREATE PROCEDURE xtest.install_plugin()
BEGIN
INSTALL PLUGIN `mysqlx` SONAME "$MYSQLXPLUGIN";
END
//

CREATE PROCEDURE xtest.shutdown_server()
BEGIN
SHUTDOWN;
END
//
DELIMITER ;

-->endsql
-->expecterror 3130
-->sql
UNINSTALL PLUGIN `mysqlx`;
-->endsql
-->expecterror 3130
-->sql
INSTALL PLUGIN `mysqlx` SONAME "$MYSQLXPLUGIN";
-->endsql
-->expecterror 3130
-->sql
SHUTDOWN;

-->endsql
-->expecterror 3130
-->sql
CALL xtest.uninstall_plugin();
-->endsql
-->expecterror 3130
-->sql
CALL xtest.install_plugin();
-->endsql
-->expecterror 3130
-->sql
CALL xtest.shutdown_server();
-->endsql

## Cleanup
-->sql
DROP SCHEMA IF EXISTS xtest;
-->endsql
EOF

--exec $MYSQLXTEST -uroot --password='' --file=$MYSQL_TMP_DIR/forbidden_sql_cmd.tmp 2>&1
--remove_file $MYSQL_TMP_DIR/forbidden_sql_cmd.tmp

## Postamble
UNINSTALL PLUGIN mysqlx;


Man Man