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

START/STOP ALL SLAVES does not return access errors

    XMLWordPrintable

Details

    Description

      MariaDB [(none)]> show grants;
      +---------------------------------------+
      | Grants for u@localhost                |
      +---------------------------------------+
      | GRANT USAGE ON *.* TO `u`@`localhost` |
      +---------------------------------------+
      1 row in set (0.000 sec)
       
      MariaDB [(none)]> stop slave;
      ERROR 1045 (28000): Access denied for user 'u'@'localhost' (using password: NO)
      MariaDB [(none)]> stop all slaves;
      Query OK, 0 rows affected (0.000 sec)
      

      Same with start all slaves.
      The commands don't actually do anything if the user is unprivileged, so there is no security problem, but I suppose they should be returning the error rather than silently do nothing.

      Attachments

        Activity

          People

            bar Alexander Barkov
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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