Coder Social home page Coder Social logo

db_table_report's Introduction

db_table_report

数据库库表获取程序

1、创建库

create database system;

2、创建表

CREATE TABLE db_table ( id int(255) NOT NULL AUTO_INCREMENT, ip varchar(20) NOT NULL, type varchar(20) DEFAULT NULL, dbname varchar(100) DEFAULT NULL, table varchar(50) DEFAULT NULL, info varchar(255) DEFAULT NULL, checksum varchar(255) NOT NULL DEFAULT '0', PRIMARY KEY (id), KEY idx_db (dbname), KEY idx_table (table), KEY idx_ip_db (ip,dbname) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=63131 DEFAULT CHARSET=utf8 COMPRESSION='lz4';

3、授权根据情况自行授权即可

  修改地方:

  my $dsn="DBI:mysql:database=system;host=ip;port=3306;mysql_socket=/tmp/mysql.sock"; $dbh = DBI->connect("$dsn","user","pass") or die "error".DBI->errstr;

4、下载程序执行运行即可。可能需要一些插件yum安装即可。 将会把本地实例的库表信息进行汇报

db_table_report's People

Contributors

kevin6386 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

wrhb123

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.