Mysql

Revi HQ
Revi (토론 | 기여)님의 2021년 9월 6일 (월) 10:21 판 (+db-specific)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

MySQL hack book.

Create DB

MariaDB [(none)]> create database $DBNAME;

Create User

MariaDB [(none)]> create user '$user'@'localhost' identified by '$password';
MariaDB [(none)]> grant all privileges on *.* to '$user'@'localhost';
MariaDB [(none)]> flush privileges;
MariaDB [(none)]> create user '$user'@'localhost' identified by '$password';
MariaDB [(none)]> grant all privileges on $DBNAME.* to '$user'@'localhost';
MariaDB [(none)]> flush privileges;