1、MySQL交互式窗口命令
mysql -u root -p123456 --连接数据库
update mysql.user set authentication_string=password('123456') where user='root' and Host='localhost'; --修改用户密码
flush privileges; --刷新权限
-----------------------------------------
show database; --查看所有数据库
mysql> use school --切换数据库:use 数据库名
Database Changed
show tables; --查看数据库中所有的表
describe student; --显示数据库中所有表的信息
create database westos; --创建一个数据库
exit; --退出
-- 单行注释
/*
多行注释
*/