본문 바로가기
DB/MySQL

MySQL) 설치 후 root 계정 설정

by nomfang 2022. 4. 15.
728x90
반응형
  1. mysql 접속
  2. use mysql (데이터베이스 이름)
  3. root 계정 생성
  4. create user 'root'@'localhost' identified by '비밀번호';
  5. 모든 권한 부여
  6. grant all privileges on *.* to 'root'@'localhost' with grant option;
// create user 안될 시 
alter user 'root'@'localhost' identified with mysql_native_password by 'new password'

 

 

반응형

'DB > MySQL' 카테고리의 다른 글

MySQL) date type 입력하기  (0) 2021.06.03
mysql) 접속  (0) 2021.04.22
mysql) 데이터 타입 - datetime  (0) 2021.04.22
mysql) source (.sql 파일 사용)  (0) 2021.04.22
mysql) 데이터 베이스 생성과 사용 (DDL)  (0) 2021.04.21

댓글