# SQL Cheats ## Create database users `CREATE USER ''@'localhost' IDENTIFIED BY '';` List current users: > `select host, user from mysql.user;` ## Create database First create database: `CREATE DATABASE ;` Then grant privileges for the user: `GRANT ALL PRIVILEGES ON .* TO ''@'localhost';` ## Actiavte changes To activate the changes: `FLUSH PRIVILEGES;`