Difference between revisions of "Database"

From Things and Stuff Wiki
Jump to navigation Jump to search
Line 25: Line 25:
  
 
=== Commands ===
 
=== Commands ===
FLUSH PRIVILEGES;
 
  
[http://www.softwareprojects.com/resources/programming/t-how-to-restrict-mysql-user-access-to-a-single-datab-1734.html]
+
* http://www.pantz.org/software/mysql/mysqlcommands.html
GRANT ALL ON USERDATABASE.* TO 'USERNAME';
+
 
 +
show databases;
 +
use [db name];
 +
show tables;
 +
flush privileges;
 +
GRANT ALL ON USERDATABASE.* TO 'USERNAME'; [http://www.softwareprojects.com/resources/programming/t-how-to-restrict-mysql-user-access-to-a-single-datab-1734.html]
  
 
Create command list for showing user grants [http://www.pythian.com/news/1165/creative-sql-how-to-easily-show-grants-for-many-users/]
 
Create command list for showing user grants [http://www.pythian.com/news/1165/creative-sql-how-to-easily-show-grants-for-many-users/]

Revision as of 03:23, 15 June 2012