- 10.1 server – mysqldump mysql > mysql.sql
- 10.5 server- mysql mysql < msyql.sql
- 증상 : 복구 후 아래와 같이 View 관련 에러 발생 및 root password login 잘 되던 것이 안됨
ERROR 1356 (HY000): View ‘mysql.user’ references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
4. 원인
mariadb 10.4 이상의 버전에서는 mysql.user table이 view table로 변경됨
MariaDB [mysql]> update user set password=password(‘12334′) where user=’root’;
ERROR 1348 (HY000): Column ‘Password’ is not updatable
5. 해결
systemctl stop mariadb
rm -fr /var/lib/mysql/*
mysql_install_db –auth-root-authentication-method=normal
MariaDB [mysql]> ALTER USER ‘root’@’localhost’ IDENTIFIED BY ‘password’;
10.1 backup user id password to 10.5 ???(그냥 id, password 정보를 새로 만드는 방법 말고 현재 없음)