Skip to content

Instantly share code, notes, and snippets.

View redteam-snippets's full-sized avatar

redteam-snippets

View GitHub Profile
@redteam-snippets
redteam-snippets / gist:2001656
Created March 8, 2012 15:58
MySQL: Create User & Database & Assign Ownership
select user from mysql.user;
create user 'USER_NAME'@'localhost' identified by 'PASSWORD';
show databases;
create database DATABASE_NAME;
grant all on DATABASE_NAME.* to 'USER_NAME'@'localhost' identified by 'PASSWORD';