Last active
February 19, 2016 19:43
-
-
Save d-smith/4049dbe1856b40f73e53 to your computer and use it in GitHub Desktop.
mariadb basics
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
show databases; | |
create database roll; | |
create user rolluser identified by 'rollpw'; | |
create table if not exists roll.sample ( | |
name varchar(128) primary key, | |
value varchar(256) | |
) | |
grant select, update, insert, delete | |
on roll.sample | |
to rolluser; | |
/* login as rolluser */ | |
use roll; | |
select count(*) from sample; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment