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

Implement SHOW CREATE SERVER

    XMLWordPrintable

Details

    Description

      CREATE SERVER is a valid statement in MariaDB:

      https://mariadb.com/kb/en/library/create-server/

      However, it seems like SHOW CREATE SERVER isn't implemented yet. Maybe it would be worth implementing?

      MariaDB [(none)]> CREATE SERVER srv1
          ->   FOREIGN DATA WRAPPER mysql
          -> OPTIONS(
          ->   HOST '172.30.0.58',
          ->   DATABASE 'db1',
          ->   USER 'maxscale',
          ->   PASSWORD 'password'
          -> );
      Query OK, 0 rows affected (0.00 sec)
       
      MariaDB [(none)]> SHOW CREATE SERVER srv1;
      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 'SERVER srv1' at line 1
      MariaDB [(none)]> SELECT * FROM mysql.servers\G
      *************************** 1. row ***************************
      Server_name: srv1
             Host: 172.30.0.58
               Db: db1
         Username: maxscale
         Password: password
             Port: 3306
           Socket:
          Wrapper: mysql
            Owner:
      1 row in set (0.00 sec)
      

      Attachments

        Issue Links

          Activity

            People

              ycp Yuchen Pei
              GeoffMontee Geoff Montee (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              10 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.