mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-22 21:52:12 +01:00
Added mysql cheatsheet
This commit is contained in:
parent
24e1c2748f
commit
0c027b792d
1 changed files with 5 additions and 0 deletions
|
@ -0,0 +1,5 @@
|
|||
# To create a database in utf8 charset
|
||||
CREATE DATABASE owa CHARACTER SET utf8 COLLATE utf8_general_ci;
|
||||
|
||||
# To add a user and give rights on the given database
|
||||
GRANT ALL PRIVILEGES ON database.* TO 'user'@'localhost'IDENTIFIED BY 'password' WITH GRANT OPTION;
|
Loading…
Reference in a new issue