Showing posts with label sql. Show all posts
Showing posts with label sql. Show all posts

Friday, June 26, 2009

Cheat Sheets

Various cheet sheets available

Phyton, Subversion, PHP, SQL, CSS

source

Saturday, June 13, 2009

sql queries

Add user

mysql> CREATE USER 'monty'@'localhost' IDENTIFIED BY 'some_pass';
mysql>
GRANT ALL PRIVILEGES ON *.* TO 'monty'@'localhost'
->
WITH GRANT OPTION;
mysql>
CREATE USER 'monty'@'%' IDENTIFIED BY 'some_pass';
mysql>
GRANT ALL PRIVILEGES ON *.* TO 'monty'@'%'
->
WITH GRANT OPTION;
mysql>
CREATE USER 'admin'@'localhost';
mysql>
GRANT RELOAD,PROCESS ON *.* TO 'admin'@'localhost';
mysql>
CREATE USER 'dummy'@'localhost';

source : here