MYSQL基础命令(cmd)

首先要确保mysql已经启动
cmd进入mysql:mysql -u 用户名(默认root) -p密码
show databases:查看库名
use 库名:使用库
show table:查看表名
selec *from 表名:查看表
describe 表名:查看表的信息
soure 库名.sql:导入库
create databases 数据库名:创建
drop databases 数据库名:删除

猜你喜欢

转载自blog.csdn.net/qq_44642379/article/details/88572778