Home · Latest · Trends  /  PHP
2

ADOdb Performance Monitor

rated 2 times [  2] [ 0]  / comments: 0 / hits: 1001  / 3 years ago, tue, sep 6, 2016, 10:18:23
This module provides HTML and CLI interfaces for viewing key performance indicators of your database.
//MySQL

CREATE TABLE adodb_logsql (
created datetime NOT NULL,
sql0 varchar(250) NOT NULL,
sql1 text NOT NULL,
params text NOT NULL,
tracer text NOT NULL,
timer decimal(16,6) NOT NULL
);

//PHP

include ('classes/adodb/db.php');
include ('classes/adodb/adodb.inc.php');
$adoDriver = "mysqli";
$DB = ADONewConnection($adoDriver);
@$DB->Connect($server,$user,$password,$database);
$perf = NewPerfMonitor($DB);
$perf->UI($pollsecs=3);
More From » PHP
 

Comments

There are no comments for this Snippet yet
Only authorized users can post. Please sign in first, or register a free account
 
Share
Snippets
Using bind variables with ADODB
3 years ago, tue, sep 6, 2016
How to check if mail function is enabled on your server
3 years ago, tue, sep 6, 2016
Compare dates in smarty template file
3 years ago, fri, sep 16, 2016
Change default chrome input style CSS
3 years ago, fri, sep 16, 2016
Get domain name without Tld with PHP
3 years ago, fri, sep 16, 2016
Validating international phone numbers with jquery
3 years ago, sun, sep 25, 2016
Smarty Remove BBCode From String
2 years ago, thu, nov 10, 2016
How to detect if uploaded file is image or not with php
2 years ago, mon, nov 21, 2016
How to check CKEditor 4 textarea not empty
2 years ago, sun, dec 25, 2016
Sponsor
Posted
Ronald

Ronald

Member since Sep 6, 2016
Total Code Snippets: 20
Total Comments: 1
Location: n/a
Following
User not following anyone yet.