apecloud / myduckserver

MySQL & Postgres Analytics, Reimagined
184 stars 8 forks source link

Account replication anomaly #134

Closed VWagen1989 closed 1 week ago

VWagen1989 commented 1 week ago
mysql> select * from mysql.user where User = 'lol'\G                                                                                                                                                                                                                                     
*************************** 1. row ***************************                                                                                                                                                                                                                           
                    Host: %                                                                                                                                                                                                                                                              
                    User: lol                                                                                                                                                                                                                                                            
             Select_priv: Y                                                                                                                                                                                                                                                              
             Insert_priv: Y                                                                                                                                                                                                                                                              
             Update_priv: Y                                                                                                                                                                                                                                                              
             Delete_priv: Y                                                                                                                                                                                                                                                              
             Create_priv: Y                                                                                                                                                                                                                                                              
               Drop_priv: Y                                                                                                                                                                                                                                                              
             Reload_priv: Y                                                                                                                                                                                                                                                              
           Shutdown_priv: Y                                                                                                                                                                                                                                                              
            Process_priv: Y                                                                                                                                                                                                                                                              
               File_priv: Y                                                                                                                                                                                                                                                              
              Grant_priv: Y                                                                                                                                                                                                                                                              
         References_priv: Y                                                                                                                                                                                                                                                              
              Index_priv: Y                                                                                                                                                                                                                                                              
              Alter_priv: Y                                                                                                                                                                                                                                                              
            Show_db_priv: Y                                                                                                                                                                                                                                                              
              Super_priv: Y                                                                                                                                                                                                                                                              
   Create_tmp_table_priv: Y                                                                                                                                                                                                                                                              
        Lock_tables_priv: Y                                                                                                                                                                                                                                                              
            Execute_priv: Y                                                                                                                                                                                                                                                              
         Repl_slave_priv: Y                                                                                                                                                                                                                                                              
        Repl_client_priv: Y                                                                                                                                                                                                                                                              
        Create_view_priv: Y                                                                                                                                                                                                                                                              
          Show_view_priv: Y                                                                                                                                                                                                                                                              
     Create_routine_priv: Y                                                                                                                                                                                                                                                              
      Alter_routine_priv: Y                                                                                                                                                                                                                                                              
        Create_user_priv: Y                                                                                                                                                                                                                                                              
              Event_priv: Y                                                                                                                                                                                                                                                              
            Trigger_priv: Y                                                                                                                                                                                                                                                              
  Create_tablespace_priv: Y                                                                                                                                                                                                                                                              
                ssl_type:                                                                                                                                                                                                                                                                
              ssl_cipher: 0x                                                                                                                                                                                                                                                             
             x509_issuer: 0x                                                                                                                                                                                                                                                             
            x509_subject: 0x                                                                                                                                                                                                                                                             
           max_questions: 0                                                                                                                                                                                                                                                              
             max_updates: 0                                                                                                                                                                                                                                                              
         max_connections: 0                                                                                                                                                                                                                                                              
    max_user_connections: 0                                                                                                                                                                                                                                                              
                  plugin: mysql_native_password                                                                                                                                                                                                                                          
   authentication_string:                                                                                                                                                                                                                                                                
        password_expired: N                                                                                                                                                                                                                                                              
   password_last_changed: 2024-11-08 10:52:26                                                                                                                                                                                                                                            
       password_lifetime: NULL                                                                                                                                                                                                                                                           
          account_locked: N                                                                                                                                                                                                                                                              
        Create_role_priv: Y                                                                                                                                                                                                                                                              
          Drop_role_priv: Y                                                                                                                                                                                                                                                              
  Password_reuse_history: NULL                                                                                                                                                                                                                                                           
     Password_reuse_time: NULL                                                                                                                                                                                                                                                           
Password_require_current: NULL                                                                                                                                                                                                                                                           
         User_attributes: NULL                                                                                                                                                                                                                                                           
                identity: *91D9861DFC07DD967611B8C96953474EF270AD5E                                                                                                                                                                                                                      
1 row in set (0.01 sec)

The value '*91D9861DFC07DD967611B8C96953474EF270AD5E' is the encrypted password string, and it should be written to 'authentication_string', not 'identity'.