[Database] MySQL基本命令

  1. To login
    # mysql -u root -p
    
  2. Show databases
    mysql> show databases;
    
  3. Switch to a database
    mysql> use [db name]
    
  4. Show tables (relations)
    mysql> show tables;
    
posted @ 2012-09-16 08:40  UniMouS  阅读(124)  评论(0编辑  收藏

版权所有 © 2011-2012 方一曙

Copyright © 2011-2012 Fang Yishu (UniMouS)