zoukankan      html  css  js  c++  java
  • mysql

    show  databases;     #查看所有数据库
    show tables;         #查看当前库的所有表
    SHOW TABLES FROM     #查看某个指定库下的表
    show create database world       #查看建库语句
    show create table world.city     #查看建表语句
    show  grants for  root@'localhost'  #查看用户的权限信息
    show  charset;           #查看字符集
    show collation;           #查看校对规则
    show processlist;           #查看数据库连接情况
    show index from             #表的索引情况
    show status                 #数据库状态查看
    SHOW STATUS LIKE '%lock%';     #模糊查询数据库某些状态
    SHOW VARIABLES                 #查看所有配置信息
    SHOW variables LIKE '%lock%';  #查看部分配置信息
    show engines                   #查看支持的所有的存储引擎
    show engine innodb statusG    #查看InnoDB引擎相关的状态信息
    show binary logs               #列举所有的二进制日志
    show master status             #查看数据库的日志位置信息
    show binlog evnets in          #查看二进制日志事件
    show slave status G           #查看从库状态
    SHOW RELAYLOG EVENTS           #查看从库relaylog事件信息
    desc  (show colums from city)  #查看表的列定义信息
    http://dev.mysql.com/doc/refman/5.7/en/show.html
  • 相关阅读:
    进阶学习项目实战链接
    Django与数据库操作
    xadmin的使用
    Django 常见的异常
    网站 安全 ---- 常见的 web 攻击
    nodejs--vue
    ECMAScript 6 简介
    Django -- DRF 认证流程
    Django -- 缓存
    Django --- celery异步任务与RabbitMQ模块
  • 原文地址:https://www.cnblogs.com/gengyufei/p/14286658.html
Copyright © 2011-2022 走看看