Server IP : 185.86.78.101 / Your IP : 216.73.216.213 Web Server : Apache System : Linux 675867-vds-valikoshka1996.gmhost.pp.ua 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:35:05 UTC 2023 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /www/server/mysql/mysql-test/r/ |
Upload File : |
drop database if exists events_test; drop database if exists mysqltest_db2; create database events_test; use events_test; set @orig_sql_mode= @@sql_mode; set sql_mode= (select replace(@@sql_mode,'NO_AUTO_CREATE_USER','')); Warnings: Warning 3090 Changing sql mode 'NO_AUTO_CREATE_USER' is deprecated. It will be removed in a future release. grant create, insert, select, delete on mysqltest_db2.* to mysqltest_user1@localhost; Warnings: Warning 1287 Using GRANT for creating new user is deprecated and will be removed in future release. Create new user with CREATE USER statement. set sql_mode= @orig_sql_mode; Warnings: Warning 3090 Changing sql mode 'NO_AUTO_CREATE_USER' is deprecated. It will be removed in a future release. create database mysqltest_db2; set autocommit=off; select @@autocommit; @@autocommit 0 create table t1 (a varchar(255)) engine=innodb; begin work; insert into t1 (a) values ("OK: create event: insufficient privileges"); create event e1 on schedule every 1 day do select 1; ERROR 42000: Access denied for user 'mysqltest_user1'@'localhost' to database 'mysqltest_db2' rollback work; select * from t1; a OK: create event: insufficient privileges delete from t1; commit work; begin work; insert into t1 (a) values ("OK: alter event: insufficient privileges"); alter event e1 on schedule every 1 day do select 1; ERROR 42000: Access denied for user 'mysqltest_user1'@'localhost' to database 'mysqltest_db2' rollback work; select * from t1; a OK: alter event: insufficient privileges delete from t1; commit work; begin work; insert into t1 (a) values ("OK: drop event: insufficient privileges"); drop event e1; ERROR 42000: Access denied for user 'mysqltest_user1'@'localhost' to database 'mysqltest_db2' rollback work; select * from t1; a OK: drop event: insufficient privileges delete from t1; commit work; drop user mysqltest_user1@localhost; drop database mysqltest_db2; drop database events_test;