Changes

From SME Server
Jump to navigationJump to search
149 bytes added ,  11:15, 21 April 2013
Line 114: Line 114:  
  mysqlshow
 
  mysqlshow
 
will list all available database. Use 'mysqlshow --help' for all available options.
 
will list all available database. Use 'mysqlshow --help' for all available options.
 +
SELECT user FROM mysql.user;
 +
display a list of the MySQL users
 +
SHOW GRANTS FOR 'user'@'localhost';
 +
list the privileges granted to the account user
 
  mysqladmin drop '''databasename'''
 
  mysqladmin drop '''databasename'''
 
will let you destroy a database. Use with care. Use 'mysqladmin --help' for all available options.
 
will let you destroy a database. Use with care. Use 'mysqladmin --help' for all available options.

Navigation menu