반응형
mysql 실행
mysql -uroot -p
mysql> use mysql
패스워드를 다른걸로 변경할 때
MariaDB [mysql]> update user set password=password('변경할 패스워드') where user = 'root';
패스워드를 초기화 할때
MariaDB [mysql]> update user set password=password('') where user = 'root'; (이렇게 암호 제거 한다)
바로 적용
MariaDB [mysql]> flush privileges;
반응형
'# IT # > Linux' 카테고리의 다른 글
# linux 7 Centos 7 redhat 7 / hostname 변경 # (0) | 2018.01.23 |
---|---|
# linux Macaddress (mac 주소) 확인 방법 # (0) | 2018.01.15 |
# Centos 6.8 cd mount(yum install) / local repo # (0) | 2017.12.11 |
# linux 7 최소 설치 후 network 설정 방법 # (0) | 2017.12.08 |
# linux 7 최소 설치 후 network 확인 방법 # (0) | 2017.12.08 |