Cheatsheet: MySQL
Server operations
start a server
stop a server
open prompt/shell
specify port explicitly
execute command from a shell
execute command from a file
If installed with homebrew
start a server
stop a server
Create new database and user
open mysql prompt as root (password is empty)
create database
create user with a password
grant permissions to a db
check permissions
login as new user
Database operations
list all databases
use a database
list all tables
describe a table
query tables size information
Resource Group Operations
list all resource groups
create a new resource group
alter an existing resource group
drop a resource group
assign a resource group to a thread
use a resource group in a query using a comment hint
See also: