취업용 Spring 프로젝트/오류 내역
MySQL 5.7 → MariaDB 10.3 마이그레이션 - root 비밀번호 오류
현수야공부하자
2019. 7. 18. 15:05
https://wnw1005.tistory.com/57
(도움 받은 블로그)
MariaDB 업그레이드 2 - ERROR 1524 (HY000): Plugin 'unix_socket' is not loaded
study@study-VirtualBox:~$ sudo mysql_upgrade --user=root --password Enter password: Version check failed. Got the following error when calling the 'mysql' command line client ERROR 1524 (HY000): Plu..
wnw1005.tistory.com
오류 내역
Enter current password for root (enter for none):
ERROR 1524 (HY000): Plugin 'auth_socket' is not loaded
오류 해결 내역
- sudo systemctl stop mariadb
- sudo mysqld_safe --skip-grant-tables &
- mysql -u root
- select Host,User,plugin from mysql.user where User='root';
- update mysql.user set plugin='mysql_native_password';
- update mysql.user set password=PASSWORD("newpassword") where User='root';
- flush privileges;
- quit;
- sudo kill -9 $(pgrep mysql)
- udo systemctl start mysql or sudo systemctl start mariadb
오류 해결