DBeaver에서 mariaDB를 연결하려고 했는데 다음과 같은 오류가 떴음
1. socket fail to connect to host
2. access denied for user 'root'@'localhost'
해결방법 >>
1. mariaDB가 설치되어있는지 확인
brew install mariadb
mysql.server start
brew services start mariadb # 서버 자동 실행 명령어
sudo mysql -u root;
password >> 맥북 비밀번호입력
USE mysql
SELECT User, Host, plugin FROM mysql.user;
# root의 plugin이 auth_socket일 경우
update user set plugin='mysql_native_password' where user='root';
flush privileges;
# select로 변경된것 확인 후 root 계정 비밀번호 설정
ALTER user 'root'@'localhost' identified by '비밀번호';
해결하고나니 DBeaver로 연결 잘됨
Springboot 에서 yml datasource DB 연결도 잘됨