여러 사람이 공유하여 사용할 목적으로 체계화해 통합, 관리하는 데이터의 집합체
사용자와 데이터베이스 사이에서 사용자의 요구에 따라 정보를 생성해주고 데이터베이스를 관리해주는 소프트웨어
데이터베이스에서 사용하는 언어
% mysql -u root -p
Enter password:
SHOW DATABASES;
CREATE DATABASES dbname;
USE dbname;
DROP DATABASE dbname;
use mysql;
SELECT host, user from user;
CREATE USER 'username'@'localhost'
identified by 'password';
->username 이라는 이름으로 로컬 pc에서 생성
CREATE USER 'username'@'%'
identified by 'password';
DROP USER 'username'@'localhost'
DROP USER 'username'@'%';
SHOW GRANTS FOR 'username'@'localhost';
GRANT ALL ON dbname.* to 'username'@'localhost';
REVOKE ALL ON dbname.* from 'username'@'localhost';