권한,구조 관련 쿼리 Posted on 2021-01-19 | In MySQL | 유저 생성 1use mysql; 로컬 호스트 대신 ip 주소나 ‘%’ 와일드 카드 입력하여 접속 제한 설정 1create user a@localhost identified by '1'; 권한 부여 1grant all privileges on *.* to 'root'@'%' identified by 'xxxx'; 적용 1flush privileges; 스키마 생성 1create database db_name; 스키마 선택 1use shcema 구조 확인 schema 1show databases; table 1show tables; table 구조 1DESC 테이블네임;