天天看点

mysql常用命令

1. 登录

  mysql -u root -p

2. 改变数据库

  use mysql;

3. 显示当前数据库下所有表

  show tables;

4. 退出

  quit