728x90
show databases;
use mysql;
show tables;
select host, user from user;
desc user;

-- 사용자 생성
create user sku@localhost identified by "skupw";
create user sku@'%' identified by "skupw";

-- 데이터베이스 생성
create database skudb default char set utf8;

-- 권한 부여
grant all privileges on skudb.* to sku@localhost with grant option;
grant all privileges on skudb.* to sku@'%' with grant option;

-- 권한 삭제
revoke all on skudb.* from sku@localhost;
revoke all on skudb.* from sku@'%';

flush privileges;
728x90

'2022 하계방학 SW 집중교육' 카테고리의 다른 글

[Java] Apache Tomcat  (0) 2022.08.18
[Java] DB 연동  (0) 2022.08.15
[Java] Checked Exception vs Unchecked Exception  (0) 2022.08.15
[Github] Personal Access Token  (0) 2022.08.15
[Github] .gitignore  (0) 2022.08.15
딩딩크롱