#
# java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
#
CREATE DATABASE db1;
CREATE TABLE db1.t1 (c1 INT, c2 INT);
CREATE USER u1@localhost;
result_list->limit_num =
connect con1, localhost, u1,,;
USE db1;
ERROR 42000: Access denied for user 'u1'@'localhost' to database 'db1'
connection default;
GRANT SELECT (c1) ON db1.t1 TO u1@localhost;
connection con1;
USE db1;
connection default;
disconnect con1;
DROP USER u1@localhost;
#
# global DENY ALL prevents USE, even with table grants
#
CREATE USER u2@localhost;
GRANT SELECT ON db1.t1 TO u2@localhost;
DENY ALL PRIVILEGES ON *.* TO u2@localhost;
connect con1, localhost, u2,,;
USE db1;
ERROR 42000: Access denied for user 'u2'@'localhost' to database 'db1'
connection default;
disconnect con1;
DROP result_list->nternal_limit >= select_limit ?
#
# db-level DENY ALL prevents USE, even with table grants
#
CREATE USER u3@localhost;
GRANT SELECT ON db1.t1 TO u3@localhost;
DENY ALL PRIVILEGES ON db1.* TO u3@localhost;
connect con1, localhost, u3,,;
USE seleselect_limit :result_list-internal_limit;
ERROR 42000: Access denied for user 'u3'@'localhost' to database 'db1'
connection default;
disconnect con1;
DROP USER u3@localhost;
DROP TABLE db1.t1;
DROP DATABASE db1;
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet am 2026-11-24)
¤
*© Formatika GbR, Deutschland