ERROR 1449 (HY000): The user specified as a definer ('mariadb.sys'@'localhost') does not exist# DataBase/Mysql(MariaDB)2022. 11. 15. 14:32
Table of Contents
728x90
반응형
아래와 같이 불필요한 계정정리를 위해 쿼리를 실행하고 나서부터 아래와 같이 에러발생!
MariaDB [mysql]> delete from user where password='';
[darksharavim]# /apps/mysql/bin/mysql -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 4
Server version: 10.5.18-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> use mysql
Database changed
MariaDB [mysql]> select * from user;
ERROR 1449 (HY000): The user specified as a definer ('mariadb.sys'@'localhost') does not exist
해결방법
[darksharavim]# ./mysql_upgrade -u root --force
Phase 1/7: Checking and upgrading mysql database
Processing databases
mysql
mysql.column_stats OK
mysql.columns_priv OK
mysql.db OK
mysql.event OK
mysql.func OK
mysql.global_priv OK
mysql.gtid_slave_pos OK
mysql.help_category OK
mysql.help_keyword OK
mysql.help_relation OK
mysql.help_topic OK
mysql.index_stats OK
mysql.innodb_index_stats OK
mysql.innodb_table_stats OK
mysql.plugin OK
mysql.proc OK
mysql.procs_priv OK
mysql.proxies_priv OK
mysql.roles_mapping OK
mysql.servers OK
mysql.table_stats 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.transaction_registry OK
Phase 2/7: Installing used storage engines... Skipped
Phase 3/7: Fixing views
mysql.user
Error : The user specified as a definer ('mariadb.sys'@'localhost') does not exist
error : Corrupt
Phase 4/7: Running 'mysql_fix_privilege_tables'
Phase 5/7: Fixing table and database names
Phase 6/7: Checking and upgrading tables
Processing databases
information_schema
performance_schema
Phase 7/7: Running 'FLUSH PRIVILEGES'
OK
[darksharavim]# ./mysql -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 21
Server version: 10.5.18-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> use mysql;
Database changed
MariaDB [mysql]> select user from user where password=''\G;
*************************** 1. row ***************************
User: mariadb.sys
1 row in set (0.002 sec)
ERROR: No query specified
MariaDB [mysql]>
https://jira.mariadb.org/browse/MDEV-22909
728x90
반응형
'# DataBase > Mysql(MariaDB)' 카테고리의 다른 글
유니온쿼리(Union Query)이용 결과값(Result Value) 합치기(Sum) (0) | 2023.01.30 |
---|---|
mysql binary log 설정 (0) | 2022.11.22 |
mysql slow query 설정 (0) | 2022.11.11 |
mysql REGEXP(정규 표현식) (0) | 2022.11.04 |
DBeaver(DB 무료 접속툴) (0) | 2022.10.27 |
@다크쉐라빔 :: 다크쉐라빔의 주절주절
안녕하세요. 이곳은 IT위주의 잡다한 정보를 올려두는 개인 블로그입니다.
포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!