mysql>  create  database  Market; 
mysql>  use  Market; 
mysql>  create  table  customers( 
    - >  c_num int ( 11 )  primary  key  auto_increment , 
    - >  c_name varchar ( 50 ) , 
    - >  c_contact varchar ( 50 ) , 
    - >  c_city varchar ( 50 ) , 
    - >  c_birth datetime  not  null  
    - >  ) ; 
 
mysql>  alter  table  customers modify  column  c_contact varchar ( 50 )  after  c_birth; 
 
mysql>  alter  table  customers modify  c_name varchar ( 70 ) ; 
 
mysql>  alter  table  customers change c_contact c_phone varchar ( 50 ) ; 
 
mysql>  alter  table  customers add  c_gender char ( 1 ) ; 
 
mysql>  rename  table  customers to  customers_info; 
 
mysql>  alter  table  customers_info drop  c_city; 
 
mysql>  alter  table  customers_info engine = MyISAM; 
mysql>  SHOW  TABLE  STATUS  LIKE  'customers_info' ; 
 
mysql>  create  table  orders( 
    - >  o_name int ( 11 )  primary  key  auto_increment , 
    - >  o_date date , 
    - >  c_id int ( 50 )  
    - >  ) ; 
mysql>  alter  table  customers_info engine = InnoDB ; 
mysql>  alter  table  orders  add  foreign  key  ( c_id)  references  customers_info( c_num) ; 
mysql>  show  create  table  orders; 
mysql>  alter  table  orders drop  foreign  key  orders_ibfk_1; 
mysql>  drop  table  customers_info; 
 
mysql>  create  user  'account1' @'localhost'  identified by  'Oldpwd1.' ; 
mysql>  grant  select , insert  on  Team. player to  account1@localhost ; 
mysql>  grant  update ( info)  on  Team. player to  account1@localhost ; 
mysql>  FLUSH PRIVILEGES ; 
mysql>  alter  user  account1@localhost  identified by  'Newpwd2.' ; 
mysql>  FLUSH PRIVILEGES ; 
mysql>  show  grants for  account1@localhost ; 
 
mysql>  revoke  all  privileges  on  * . *  from  account1@localhost ; 
mysql>  drop  user  account1@localhost ;