일상 기록 창고

우분투 16.04 설치 후 mariadb-server-10.0 설치 후 로그인 오류 본문

프로그래밍/mysql

우분투 16.04 설치 후 mariadb-server-10.0 설치 후 로그인 오류

Crazy_Kong 2016. 5. 19. 12:03

apt 로 설치 하려고 혹시 해서 보니 올라와 있어 설치를 진행 했다.


1. 설치 후 다음 로그인

 mysql -uroot -p 

 ERROR 1698 (28000): Access denied for user 'root'@'localhost'


2. sudo /usr/bin/mysql_secure_installation 

   역시 오류 발생..


3. 오류 내용

[Warning] 'user' entry 'root@localhost' has both a password and an authentication plugin specified. The password will be ignored.



다음과 같이 해결

1. sudo mysql -uroot 

  패스워드 없이 진행하니 진입 성공


2. use mysql 


3. update user set plugin='' where User='root';


4. flush privileges;