1
0
Fork 0
mirror of https://github.com/Erreur32/cheat.git synced 2025-01-13 16:22:03 +01:00
cheat-fork-echo/cheatsheets/mysql

5 lines
257 B
Text
Raw Normal View History

2013-08-26 16:52:09 +02:00
# 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;