数据库
命令行连接
mysql -uroot -p123456 -- 连接数据库
update mysql.user set authentication_string=password('123456') where user='root' and Host = 'localhost'; -- 修改用户密码
flush privileges; -- 刷新权限
show databases; -- 查看所有的数据库
use school -- 切换数据库 use 数据库名
show tables; -- 查看数据库中的所有表
describe student; -- 显示数据库中所有表的信息
show create database school -- 查看创建数据库的语句
show create table student -- 查看student数据表的定义语句
auto_increment 自增 comment '' 备注