centos下命令行操作MySQL
查看数据库:show databases;
返回可用数据库的一个列表。表中可能包含Mysql内部使用的数据库(mysql information_schema),也有自己建立的表

查看数据库内的表:show tables;

show也可以用来显示表列:show columns from istester; from后要给出表名。
也可以用 describe idowu; 显示表

auto_increment(自动增量):某些表列需要唯一值。在每个行添加到表中时,MySQL可以自动地为每个行分配下一个可用编号,不用在添加一行时手动分配唯一值(这样做必须记住最后一次使用的值)。这个功能就是所谓的自动增量。
show grants; 显示授予用户的安全权限。

help show; 可显示更多
网友评论