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

CREATE USER .. IDENTIFIED WITH .. BY .. is not supported

    XMLWordPrintable

Details

    • 10.2.6-2, 10.2.6-3, 10.3.1-1

    Description

      According to MDEV-7978, 5.7 account management syntax related to IDENTIFIED clause should be supported. The following variation is not:

      CREATE USER ... IDENTIFIED WITH ... BY ...
      

      10.2

      MariaDB [test]> create user foo@localhost identified with 'auth_socket' by 'abc';
      ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'by 'abc'' at line 1
      MariaDB [test]> select @@version;
      +----------------------+
      | @@version            |
      +----------------------+
      | 10.2.3-MariaDB-debug |
      +----------------------+
      1 row in set (0.00 sec)
      

      MySQL 5.7

      MySQL [test]> create user foo@localhost identified with 'auth_socket' by 'abc';Query OK, 0 rows affected (0.00 sec)
       
      MySQL [test]> select @@version;
      +--------------+
      | @@version    |
      +--------------+
      | 5.7.16-debug |
      +--------------+
      1 row in set (0.00 sec)
      

      I'm not sure if it is supposed to work, but it's worth checking.

      Attachments

        Issue Links

          Activity

            People

              cvicentiu Vicențiu Ciorbaru
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              4 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.