当前位置:Gxlcms > 数据库问题 > mysql 常用命令

mysql 常用命令

时间:2021-07-01 10:21:17 帮助过:26人阅读

以下命令以root用户为例:


 

登录数据库:

mysql  -u root -p

查看所有数据库:

show databases;

选择数据库:

user 数据库名;

显示数据库所有表格:

show tables;

显示表的列信息:

show columns from 表名;

也可以用 : describe  表名;

 

mysql 常用命令

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

人气教程排行