MySQL 업데이트 후 1449 (HY000) 에러

Research Dec 17, 2018

MySQL 버젼을 5.7 에서 8.0 으로 업데이트하고 난 후에 터미널에서 MySQL 콘솔에 접속한 후에 몇몇 조작을 하다가 다음과 같은 에러를 마주쳤습니다 ㅠㅠ.

ERROR 1449 (HY000): The user specified as a definer ('mysql.infoschema'@'localhost') does not exist

검색해보니 여러 방안이 있었지만, 그 중 정확히 상황까지 일치하는 답변이 해결에 도움을 주었습니다.

이 답변대로 아래 명령을 실행하였습니다.

mysql_upgrade -u root

이후 다음과 같은 출력이 나오면서 해결되었습니다.

root@testserver:~# mysql_upgrade -u root
Checking if update is needed.
Checking server version.
Running queries to upgrade MySQL server.
Upgrading system table data.
Checking system database.
mysql.columns_priv                                 OK
mysql.component                                    OK
mysql.db                                           OK
mysql.default_roles                                OK
mysql.engine_cost                                  OK
mysql.func                                         OK
mysql.general_log                                  OK
mysql.global_grants                                OK
mysql.gtid_executed                                OK
mysql.help_category                                OK
mysql.help_keyword                                 OK
mysql.help_relation                                OK
mysql.help_topic                                   OK
mysql.innodb_index_stats                           OK
mysql.innodb_table_stats                           OK
mysql.ndb_binlog_index                             OK
mysql.password_history                             OK
mysql.plugin                                       OK
mysql.procs_priv                                   OK
mysql.proxies_priv                                 OK
mysql.role_edges                                   OK
mysql.server_cost                                  OK
mysql.servers                                      OK
mysql.slave_master_info                            OK
mysql.slave_relay_log_info                         OK
mysql.slave_worker_info                            OK
mysql.slow_log                                     OK
mysql.tables_priv                                  OK
mysql.time_zone                                    OK
mysql.time_zone_leap_second                        OK
mysql.time_zone_name                               OK
mysql.time_zone_transition                         OK
mysql.time_zone_transition_type                    OK
mysql.user                                         OK
Found outdated sys schema version 1.5.1.
Upgrading the sys schema.
Checking databases.
// 데이터베이스 목록
sys.sys_config                                     OK
Upgrade process completed successfully.
Checking if update is needed.****

Tags

Sunghun Kim

Sunghun Kim (a.k.a. SHGroup, KSHGroup)

Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.