查看数据库命令:
根目录进入数据库 mysql -uroot -pmysql版本 mysql> select version();查看数据库: show databases; 进入一个库: use <对应的名字>; 查看库表: show tables; 打开表: select * from <对应的表名>;注:命令必须加上 “;” 分号