Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-33088

Cannot create triggers in the database `MYSQL`

    XMLWordPrintable

Details

    Description

      I run a MariaDB server with lower-case-table-names=0.

      This script returns an error:

      CREATE OR REPLACE DATABASE MYSQL;
      CREATE OR REPLACE TABLE MYSQL.t1 (a INT);
      CREATE TRIGGER MYSQL.tr1 AFTER INSERT ON t1 FOR EACH ROW DELETE FROM t1;
      

      ERROR 1465 (HY000): Triggers can not be created on system tables
      

      This looks wrong, as the database `MYSQL` (with upper case letters) is not system.
      Only `mysql` (with lower case letters) is system.

      Attachments

        Issue Links

          Activity

            People

              bar Alexander Barkov
              bar Alexander Barkov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.