Skip to content

The plug-in does not work in mysqlsh Ver 9.3.0 Ver 8.4.5. #48

@Jerry-Freelancer

Description

@Jerry-Freelancer
[root@mydb ~]# mysqlsh
/root/.mysqlsh/plugins/user/grants.py:83: SyntaxWarning: invalid escape sequence '\.'
  grant_stmt_tmp = re.sub(" ON .*\..* TO .*$", "", grant_stmt_tmp)
/root/.mysqlsh/plugins/user/grants.py:210: SyntaxWarning: invalid escape sequence '\.'
  grant_stmt_tmp = re.sub(" ON .*\..* TO .*$", "", grant_stmt_tmp)
/root/.mysqlsh/plugins/user/copy.py:226: SyntaxWarning: invalid escape sequence '\.'
  " ON .*\..* TO .*$", "", grant_stmt_tmp
/root/.mysqlsh/plugins/user/copy.py:341: SyntaxWarning: invalid escape sequence '\.'
  grant_stmt_tmp = re.sub(" ON .*\..* TO .*$", "", grant_stmt_tmp)
/root/.mysqlsh/plugins/user/clone.py:132: SyntaxWarning: invalid escape sequence '\.'
  " ON .*\..* TO .*$", "", grant_stmt_tmp
/root/.mysqlsh/plugins/user/clone.py:217: SyntaxWarning: invalid escape sequence '\.'
  grant_stmt_tmp = re.sub(" ON .*\..* TO .*$", "", grant_stmt_tmp)
MySQL Shell 9.3.0

Copyright (c) 2016, 2025, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
Other names may be trademarks of their respective owners.

Type '\help' or '\?' for help; '\quit' to exit.
 MySQL  SQL > \c root@localhost
Creating a session to 'root@localhost'
Fetching global names for auto-completion... Press ^C to stop.
Your MySQL connection id is 34
Server version: 8.0.42-33 Percona Server (GPL), Release 33, Revision 9dc49998
No default schema selected; type \use <schema> to set one.
 MySQL  localhost:3306 ssl  SQL > \js
Switching to JavaScript mode...
 MySQL  localhost:3306 ssl  JS > dba.get
getCluster()     getClusterSet()  getReplicaSet()
 MySQL  localhost:3306 ssl  JS > \q
Bye!
[root@mydb ~]# mysqlsh --version
mysqlsh   Ver 9.3.0 for Linux on x86_64 - for MySQL 9.3.0 (MySQL Community Server (GPL))
[root@mydb ~]#

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions