Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/MariaDB/mysql-test/main/   (MariaDB Server Version 8.1-8.4©)  Datei vom 1.9.2026 mit Größe 1 kB image not shown  

Quelle  deny_use_db.result   Sprache: Lisp

 

#
# check_grant_db with DENY-only entries
#
CREATE DATABASE db1;
CREATE TABLE db1.t1 (c1 INT, c2 INT);
CREATE USER u1@localhost;
DENY INSERT ON db1.t1 TO u1@localhost;
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 USER u2@localhost;
#
# 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 db1;
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;

Messung V0.5 in Prozent
C=28 H=100 G=73

¤ Dauer der Verarbeitung: 0.14 Sekunden  (vorverarbeitet am  2026-10-08) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.