Linux中MySQL的基本操作

1. 用root用户登录mysql

mysql -u root -p

2. 查看database

show databases;

3. 查看table

use database名

show tables;

4. 退出

quit or exit

原文地址:https://www.cnblogs.com/randyyang/p/4115215.html