DB (2) 썸네일형 리스트형 CentOS 7] mysql 5.7 비밀번호 잊어버렸을 때 변경하기 mysql 접속이 계속 실패할 때 비밀번호를 변경하는 법 mysql 버전마다 다르므로 참고하기 데몬 중지 # systemctl stop mysqld 만약 centOS 6 버전이라면 => service mysqld stop 환경 옵션을 안전모드로 설정한다 # systemctl set-environment MYSQLD_OPTS="--skip-grant-tables" 데몬 시작 # systemctl start mysqld root로 mysql 접속 (비밀번호 없이 접속이 가능하다) # mysql -u root 비밀번호 설정 에 설정할 비밀번호 넣기 mysql> UPDATE mysql.user SET authentication_string=PASSWORD('Passw0rd') -> where user='root.. CentOS 7] Mysql 설치하기 centOS 7 : mariaDB가 기본 데이터베이스 리포지터리 설치 # yum -y install http://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm mysql-server 설치 # yum -y install mysql-community-server mysql 접속하기 # mysql -u root -p Enter password: //비밀번호를 모름 ! ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) mysqld.log 경로 확인 # find / -name mysqld.log /var/log/mysqld.log [root@localh.. 이전 1 다음