brew install mysql
brew services start mysql
brew services stop mysql
CREATE DATABASE hanjaelee;
SHOW DATABASES;
USE hanjaelee;
SELECT DATABASE();
SHOW TABLES;
CREATE TABLE posts (
id int PRIMARY KEY NOT NULL AUTO_INCREMENT,
title varchar(64)
)
INSERT INTO posts (title) VALUES (’hello’) ;
SELECT * FROM posts;
DELETE FROM posts WHERE id = 1;