输入banner图图片脚本导航/分类

mysql 常用命令

以下命令以root用户为例:


 

登录数据库:

mysql  -u root -p

查看所有数据库:

show databases;

选择数据库:

user 数据库名;

显示数据库所有表格:

show tables;

显示表的列信息:

show columns from 表名;

也可以用 : describe  表名;

 

mysql 常用命令

标签:ble   column   数据库名   常用   des   esc   tables   rom   选择