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

Quelle  rpl_deny.result   Sprache: Lisp

 

include/master-slave.inc
[connection master]
connection master;
CREATE USER 'u'@'localhost';
GRANT SELECT, INSERT, UPDATE ON test.* TO 'u'@'localhost';
connection slave;
# Verify baseline GRANT replicated
connection slave;
SHOW GRANTS FOR 'u'@'localhost';
Grants for u@localhost
GRANT USAGE ON *.* TO `u`@`localhost`
GRANT SELECT, INSERT, UPDATE ON `test`.* TO `u`@`localhost`
# DENY SELECT and verify replication
connection master;
DENY SELECT ON test.* TO 'u'@'localhost';
SHOW GRANTS FOR 'u'@'localhost';
Grants for u@localhost
GRANT USAGE ON *.* TO `u`@`localhost`
GRANT SELECT, INSERT, UPDATE ON `test`.* TO `u`@`localhost`
DENY SELECT ON `test`.* TO `u`@`localhost`
connection slave;
connection slave;
SHOW GRANTS FOR 'u'@'localhost';
Grants for u@localhost
GRANT USAGE ON *.* TO `u`@`localhost`
GRANT SELECT, INSERT, UPDATE ON `test`.* TO `u`@`localhost`
DENY SELECT ON `test`.* TO `u`@`localhost`
# DENY INSERT and verify replication
connection master;
DENY INSERT ON test.* TO 'u'@'localhost';
SHOW GRANTS FOR 'u'@'localhost';
Grants for u@localhost
GRANT USAGE ON *.* TO `u`@`localhost`
GRANT SELECT, INSERT, UPDATE ON `test`.* TO `u`@`localhost`
DENY SELECT, INSERT ON `test`.* TO `u`@`localhost`
connection slave;
connection slave;
SHOW GRANTS FOR 'u'@'localhost';
Grants for u@localhost
GRANT USAGE ON *.* TO `u`@`localhost`
GRANT SELECT, INSERT, UPDATE ON `test`.* TO `u`@`localhost`
DENY SELECT, INSERT ON `test`.* TO `u`@`localhost`
# REVOKE DENY SELECT and verify replication
connection master;
REVOKE DENY SELECT ON test.* FROM 'u'@'localhost';
SHOW GRANTS FOR 'u'@'localhost';
Grants for u@localhost
GRANT USAGE ON *.* TO `u`@`localhost`
GRANT SELECT, INSERT, UPDATE ON `test`.* TO `u`@`localhost`
DENY INSERT ON `test`.* TO `u`@`localhost`
connection slave;
connection slave;
SHOW GRANTS FOR 'u'@'localhost';
Grants for u@localhost
GRANT USAGE ON *.* TO `u`@`localhost`
GRANT SELECT, INSERT, UPDATE ON `test`.* TO `u`@`localhost`
DENY INSERT ON `test`.* TO `u`@`localhost`
connection master;
DROP USER 'u'@'localhost';
connection slave;
include/rpl_end.inc

Messung V0.5 in Prozent
C=56 H=100 G=80

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

*© 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.