数据库命令--创建表、转换表
cmd操作
mysql -uroot -p --连接数据库
update mysql.user set authentication_string=password('123456') where user='root' and Host='localhost'; --修改用户密码
flush privileges; --刷新权限
-----------------------------------------------------------------------
show databases; --查看所有数据库
mysql> use school --切换数据库(use 数据库名)
Database change
show tables; --查看数据库中所有的表
describe student; --显示数据库中所有的表的信息
creat database abc; --创建一个abc的数据库
exit; --退出连接
--单行注释
/*(多行注释)
a
c
b
*/