MariaDB/MySQL DDL(CREATE, ALTER, DROP) Query


MariaDB/MySQL DDL(CREATE, ALTER, DROP) Query

데이터베이스 생성 CREATE DATABASE CREATE DATABASE 문은 새로운 데이터베이스를 생성해 줍니다. CREATE DATABASE 데이터베이스이름 User 생성 CREATE USER CREATE USER 문은 새로운 사용자를 생성해 줍니다. create user oozie@localhost identified by 'user'; grant all privileges on user.* to user@localhost; grant all privileges on user.* to user@'%'; grant all privileges on airflow.* to user@localhost; grant all privileges on airflow.* to user@'%'; ## 권한 삭제 revoke all on dbname.table from userid@host ## 권한 조회 show grants for userid@host 테이블 생성 CREATE TABLE 데이...


#alter #create #drop #mariadb #mysql

원문링크 : MariaDB/MySQL DDL(CREATE, ALTER, DROP) Query