连接登录数据库
 
  
  mysql -h 
127.0.
0.1 -P 
3306 -u root -p123456 
  
 
查看数据库
 
  
  mysql> show databases; 
  
 
进入数据库test
 
  
  mysql> use test; 
  
 
查看test数据库中所有表
 
  
  mysql> show tables; 
  
 
查看表student的创建语言
 
  
  mysql> show create table student \g; 
  
 
查看表student的字段结构
 
  
  mysql> desc student; 
  
 
 
 
转载于:https://www.cnblogs.com/guanfuchang/p/7052448.html