浅见池也 发表于 2018-10-6 10:34:10

【MySQL】mysql root密码忘记怎么办?

04:23:53 root@localhost [(none)]>use test;  Reading table information for completion of table and column names
  You can turn off this feature to get a quicker startup with -A
  Database changed
  04:23:56 root@localhost >show tables;
  +----------------+
  | Tables_in_test |
  +----------------+
  | user         |
  +----------------+
  1 row in set (0,00 sec)
  04:23:58 root@localhost >select * from user\G
  *************************** 1. row ***************************
  Host: localhost
  User: mysql.session
  Select_priv: N
  Insert_priv: N
  Update_priv: N
  Delete_priv: N
  Create_priv: N
  Drop_priv: N
  Reload_priv: N
  Shutdown_priv: N
  Process_priv: N
  File_priv: N
  Grant_priv: N
  References_priv: N
  Index_priv: N
  Alter_priv: N
  Show_db_priv: N
  Super_priv: Y
  Create_tmp_table_priv: N
  Lock_tables_priv: N
  Execute_priv: N
  Repl_slave_priv: N
  Repl_client_priv: N
  Create_view_priv: N
  Show_view_priv: N
  Create_routine_priv: N
  Alter_routine_priv: N
  Create_user_priv: N
  Event_priv: N
  Trigger_priv: N
  Create_tablespace_priv: N
  ssl_type:
  ssl_cipher:
  x509_issuer:
  x509_subject:
  max_questions: 0
  max_updates: 0
  max_connections: 0
  max_user_connections: 0
  plugin: mysql_native_password
  authentication_string: *C7A1AAE2D250AFD864050FAF4935EF6F5D185A92
  password_expired: N
  password_last_changed: 2018-02-23 13:19:12
  password_lifetime: NULL
  account_locked: Y
  *************************** 2. row ***************************
  Host: localhost
  User: mysql.sys
  Select_priv: N
  Insert_priv: N
  Update_priv: N
  Delete_priv: N
  Create_priv: N
  Drop_priv: N
  Reload_priv: N
  Shutdown_priv: N
  Process_priv: N
  File_priv: N
  Grant_priv: N
  References_priv: N
  Index_priv: N
  Alter_priv: N
  Show_db_priv: N
  Super_priv: N
  Create_tmp_table_priv: N
  Lock_tables_priv: N
  Execute_priv: N
  Repl_slave_priv: N
  Repl_client_priv: N
  Create_view_priv: N
  Show_view_priv: N
  Create_routine_priv: N
  Alter_routine_priv: N
  Create_user_priv: N
  Event_priv: N
  Trigger_priv: N
  Create_tablespace_priv: N
  ssl_type:
  ssl_cipher:
  x509_issuer:
  x509_subject:
  max_questions: 0
  max_updates: 0
  max_connections: 0
  max_user_connections: 0
  plugin: mysql_native_password
  authentication_string: *C7A1AAE2D250AFD864050FAF4935EF6F5D185A92
  password_expired: N
  password_last_changed: 2018-02-23 13:19:26
  password_lifetime: NULL
  account_locked: Y
  2 rows in set (0,00 sec)

页: [1]
查看完整版本: 【MySQL】mysql root密码忘记怎么办?