겉바속촉
DBMS 5. MYSQL mysql.user 테이블 파헤치기 본문
728x90
반응형
스키마를 mysql로 변경
mysql> use mysql
Database changed
mysql 테이블 구성 확인하기
mysql> show tables;
+------------------------------------------------------+
| Tables_in_mysql |
+------------------------------------------------------+
| columns_priv |
| component |
| db |
| default_roles |
| engine_cost |
| func |
| general_log |
| global_grants |
| gtid_executed |
| help_category |
| help_keyword |
| help_relation |
| help_topic |
| innodb_index_stats |
| innodb_table_stats |
| password_history |
| plugin |
| procs_priv |
| proxies_priv |
| replication_asynchronous_connection_failover |
| replication_asynchronous_connection_failover_managed |
| replication_group_configuration_version |
| replication_group_member_actions |
| role_edges |
| server_cost |
| servers |
| slave_master_info |
| slave_relay_log_info |
| slave_worker_info |
| slow_log |
| tables_priv |
| time_zone |
| time_zone_leap_second |
| time_zone_name |
| time_zone_transition |
| time_zone_transition_type |
| user |
+------------------------------------------------------+
37 rows in set (0.02 sec)
저기서 계정과 관련된 테이블이 바로 user
주의할 점은 mysql 5.7버전부터 password 컬럼에서 authentication_string으로 변경된 것 알기
mysql> select host, user, password from user;
select host, user, password from user;
^C
mysql> select host, user, authentication_string from user;
+-----------+------------------+------------------------------------------------------------------------+
| host | user | authentication_string |
+-----------+------------------+------------------------------------------------------------------------+
| localhost | debian-sys-maint | $A$005$4%
qt>aFM Q+Xl'EOLK67oB6sAnqkicZJegafwTMAliEqbhEOMSu3PtSsS6 |
| localhost | juu | $A$005$v2oz,lR_m8cfpZWdRqM3HXrxOASCsA8mi.erFAtw8u6Rr8mQ1EUsSUE8 |
| localhost | mysql.infoschema | $A$005$THISISACOMBINATIONOFINVALIDSALTANDPASSWORDTHATMUSTNEVERBRBEUSED |
| localhost | mysql.session | $A$005$THISISACOMBINATIONOFINVALIDSALTANDPASSWORDTHATMUSTNEVERBRBEUSED |
| localhost | mysql.sys | $A$005$THISISACOMBINATIONOFINVALIDSALTANDPASSWORDTHATMUSTNEVERBRBEUSED |
| localhost | root | |
| localhost | test | $A$005$n
m;Xo0wX|X80xVP71nlcZFuXKS904s9PfMdfeSKPRwbmUVG43p8ujQB |
0.rQYVyjIAdDsrLFrHRrGxjPqghPWgKzYYtJxyt2kN3 |7Nkx%VYoE2N
+-----------+------------------+------------------------------------------------------------------------+
8 rows in set (0.00 sec)
728x90
반응형
'IT 일기 (상반기) > 주요정보통신기반시설' 카테고리의 다른 글
DBMS 7. MYSQL host가 뭐야? (0) | 2021.12.08 |
---|---|
DBMS 6. MYSQL mysql.db 테이블 파헤치기 (0) | 2021.12.08 |
DBMS 4. MYSQL 패스워드 사용기간 및 복잡도 설정시 비어있는 경우 (0) | 2021.12.08 |
DBMS 3. MYSQL 기본 (0) | 2021.12.07 |
DBMS 2. WINDOWS-ORACLE 설치 (0) | 2021.12.07 |