创建用户时指定密码,为什么mysql.user中authentication_string列不显示

【 使用环境 】 测试环境
【 OB 】
【 使用版本 】4.0.0
【问题描述】
创建用户时指定密码,为什么mysql.user中authentication_string列不显示
【复现路径】

mysql> create user fl@'%' identified by '111111';
Query OK, 0 rows affected (0.07 sec)

mysql> grant all on fldb.* to fl@'%';
Query OK, 0 rows affected (0.07 sec)

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| fldb               |
| information_schema |
| mysql              |
| oceanbase          |
| test               |
+--------------------+
5 rows in set (0.02 sec)

mysql> select host,user,authentication_string from mysql.user;
+------+------------+-----------------------+
| host | user       | authentication_string |
+------+------------+-----------------------+
| %    | root       |                       |
| %    | ORAAUDITOR |                       |
| %    | fl         |                       |
+------+------------+-----------------------+
3 rows in set (0.00 sec)

mysql> exit
Bye
➜  ~
➜  ~ mysql -ufl@fltenant -h127.0.0.1 -P2881
ERROR 1045 (42000): Access denied for user 'fl'@'xxx.xxx.xxx.xxx' (using password: NO)
➜  ~
➜  ~ mysql -ufl@fltenant -p111111 -h127.0.0.1 -P2881
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3221487624
Server version: 5.7.25 OceanBase_CE 4.0.0.0 (r100000272022110114-6af7f9ae79cd0ecbafd4b1b88e2886ccdba0c3be) (Built Nov  1 2022 14:57:18)

Copyright (c) 2000, 2022, 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 '\h' for help. Type '\c' to clear the current input statement.

mysql>

目前暂未使用该字段,参考:
https://www.oceanbase.com/docs/common-oceanbase-database-cn-10000000001577007

1 个赞

那密码是存在哪儿呢?

有个password字段

1 个赞