1 登录 mysql client
打开 mysql client -输入密码 123 回车
2 show database; ---显示数据库
3 切换数据库:use mysql
4 describe user;----显示表结构
5 修改密码:格式:mysql> set password for 用户名@localhost = password('新密码');
6 create database mydatabase; -----创建数据库
7 create table newtable ();---创建数据表
8 查询数据库中所有表:select table_name from information_schema.tables where table_schema='数据库'
show tables-----显示当前数据库中的表