-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSQL.txt
27 lines (27 loc) · 904 Bytes
/
SQL.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<<<<<<< HEAD
create database todo;
create user 'todo'@'localhost' identified by 'todo123';
grant all privileges on todo.* to 'todo'@'localhost';
use todo
mysql> create table user(
-> `id` int unsigned auto_increment,
-> `name` varchar(40) not null,
-> primary key(id)
-> );
create user 'qwq'@'localhost' identified by 'qwqpwd';
mysql> grant select on todo.* to 'qwq'@'localhost';
drop user 'qwq'@'localhost';
=======
create database todo;
create user 'todo'@'localhost' identified by 'todo123';
grant all privileges on todo.* to 'todo'@'localhost';
use todo
mysql> create table user(
-> `id` int unsigned auto_increment,
-> `name` varchar(40) not null,
-> primary key(id)
-> );
create user 'qwq'@'localhost' identified by 'qwqpwd';
mysql> grant select on todo.* to 'qwq'@'localhost';
drop user 'qwq'@'localhost';
>>>>>>> e26d1010c668576e7783ec0bbc26c3c3f8ef1059