topical media & game development

talk show tell print

basic-mysql-14-ch14-TryItOut.sql / sql



  
  /* Chapter 14 - Try It Out sections */
  
  /* Try It Out: Adding Users to the DVDRentals Database */
  
  GRANT SELECT, UPDATE (EmpFN, EmpMN, EmpLN)
  ON DVDRentals.Employees
  TO 'myuser1'@'localhost' IDENTIFIED BY 'mypw1'
  WITH MAX_CONNECTIONS_PER_HOUR 25;
  
  SELECT host, user, select_priv, update_priv FROM user WHERE user='myuser1';
  SELECT host, db, user, table_name, table_priv, column_priv 
     FROM tables_priv WHERE user='myuser1';
  SELECT host, db, user, table_name, column_name, column_priv 
     FROM columns_priv WHERE user='myuser1';
  
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.