diff --git a/cheatsheets/mysql b/cheatsheets/mysql index e69de29..2fe112f 100644 --- a/cheatsheets/mysql +++ b/cheatsheets/mysql @@ -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; \ No newline at end of file