728x90
#계정생성
CREATE USER 'supervisor'@'localhost' identified BY '1111';
# 데이터 베이스 생성
CREATE database MyBoard;
#데이터 베이스의 권한 설정r
grant all privileges ON .* to 'supervisor'@'localhost';
grant all privileges on *.* to 'supervisor'@'localhost';
select * from mysql.user where user='commander';
CMD-> %MySql%\bin 가서 ->mysql -u root p
create user '계정명'@'%' identified by 'password';
grant all privileges on *.* to '계정명'@'%';
flush privileges;
쿼리문으로 계정 확인
select * from mysql.user;
728x90
'MySQL' 카테고리의 다른 글
MariaDB 코드 (0) | 2022.02.15 |
---|---|
기존 테이블 외래키추가(참조 테이블) (0) | 2022.02.07 |
MySQL (0) | 2022.01.27 |
실습용 데이터 설치 (0) | 2022.01.26 |
MySQL설치 방법 (0) | 2022.01.26 |
댓글